Skip to content
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

Error when parenting an armature to another armature's bone #4

Open
HeCorr opened this issue Feb 11, 2022 · 4 comments
Open

Error when parenting an armature to another armature's bone #4

HeCorr opened this issue Feb 11, 2022 · 4 comments

Comments

@HeCorr
Copy link

HeCorr commented Feb 11, 2022

I'm trying to parent an armature to another armature's bone and it's throwing an error:

Python: Traceback (most recent call last):
  File "C:\Users\Henrique\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\dynamic_parent.py", line 251, in execute
    const = get_last_dymanic_parent_constraint(obj)
  File "C:\Users\Henrique\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\dynamic_parent.py", line 58, in get_last_dymanic_parent_constraint
    if not obj.constraints:
AttributeError: 'NoneType' object has no attribute 'constraints'

location: <unknown location>:-1

Blender version: 3.0.1 build dc2d18018171
Dynamic Parent version: 1.0.0

Here's a video demonstrating the issue:

2022-02-11.15-24-15.mp4

The current workaround is to parent the child armature to an empty directly and dynamically parent the empty to the main armature:

2022-02-11.15-26-04.mp4

...which is not the end of the world but I would rather not have to do that, specially when working with many child armatures.

@romanvolodin
Copy link
Owner

You have to select both armatures and switch into Pose Mode. Then DynamicParent will work.

@HeCorr
Copy link
Author

HeCorr commented Feb 12, 2022

But that requires me to have a root bone in the child armature, which in my case I don't.

It's possible to manually add a ChildOf constraint to the armature, so shouldn't it just work? Is there a limitation in Blender's API?

@romanvolodin
Copy link
Owner

You don't need any root bone. It should work as it is.

2022-02-13_00-55-20.mp4

@HeCorr
Copy link
Author

HeCorr commented Feb 12, 2022

What I meant by a root bone is a bone that all other bones are parented to.

The way you showed in the video I still need to parent a specific bone, not the armature object, which is what I want.

In my case I have two disconnected bones and I would have to parent both if I were to use your method (or modify the armature, creating a root bone whose other bones are statically parented to).

I still consider this a limitation and would like to see it implemented in the future if possible, otherwise you can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants