-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addon fix works partially (4.0) #12
Comments
Thanks for report! Will take a look tomorrow.
пн, 4 дек. 2023 г., 21:57 batonchick1 ***@***.***>:
… Hello. Interestingly, the addon's fix partially doesn't work: it links
objects in "object" mode without any problems.
It also connects an armature in pose mode to an object in "object mode" if
the armature is the parent, but if the parent is an object in "object mode"
or if you need to connect two different armatures in pose mode, it throws
an error:
Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender
Foundation\Blender\4.0\scripts\addons\dynamic_parent.py", line 287, in
execute
dp_create_dynamic_parent_pbone(self)
File "C:\Users\User\AppData\Roaming\Blender
Foundation\Blender\4.0\scripts\addons\dynamic_parent.py", line 188, in
dp_create_dynamic_parent_pbone
bpy.ops.constraint.childof_set_inverse(
File "C:\Program Files\Blender Foundation\Blender
4.0\4.0\scripts\modules\bpy\ops.py", line 106, in *call*
C_exec, C_undo = _BPyOpsSubModOp._parse_args(args)
File "C:\Program Files\Blender Foundation\Blender
4.0\4.0\scripts\modules\bpy\ops.py", line 60, in _parse_args
raise ValueError("1-2 args execution context is supported")
ValueError: 1-2 args execution context is supported
—
Reply to this email directly, view it on GitHub
<#12>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACISHYP6Y22OWUTOF4U75SDYHYMI7AVCNFSM6AAAAABAGOXDROVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDINJRGQZTQNY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I have the same error, the DeepSeek AI said that most likely the issue is in Blender API Compatibility: import bpy Step 1: Use the correct execution contextbpy.ops.constraint.childof_set_inverse(context, constraint=last_constraint.name, owner='BONE') Step 2: Assume you have the context and last_constraint properly obtainedcontext = bpy.context Step 3: Call the functiondp_create_dynamic_parent_pbone(context, last_constraint)" Mb this will help you somehow, but I didn't understood a thing... And btw I LOVE this addon and use it every time, really great stuff, saves me a ton of time! |
Looks like fixed in d4e6188. At least it works fine in my simple scene. |
Yes, it's fixed! Thank you very much! Большое спасибо, теперь всё идеально работает, этот аддон невероятно полезен для меня и я благодарен тебе за твою работу. |
Hello. Interestingly, the addon's fix partially doesn't work: it links objects in "object" mode without any problems.
It also connects an armature in pose mode to an object in "object mode" if the armature is the parent, but if the parent is an object in "object mode" or if you need to connect two different armatures in pose mode, it throws an error:
Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\dynamic_parent.py", line 287, in execute
dp_create_dynamic_parent_pbone(self)
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\dynamic_parent.py", line 188, in dp_create_dynamic_parent_pbone
bpy.ops.constraint.childof_set_inverse(
File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 106, in call
C_exec, C_undo = _BPyOpsSubModOp._parse_args(args)
File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 60, in _parse_args
raise ValueError("1-2 args execution context is supported")
ValueError: 1-2 args execution context is supported
The text was updated successfully, but these errors were encountered: