dmak
03-19-2008, 03:27 PM
I'm trying to turn on/off rotation inheritance of a child bone, basically I want a characters head/neck to either rotate with the spine or keep it's rotation offset when the spine is rotated. The code I'm using is:
setInheritanceFlags $neckBone01 #{1,2,3,7,8,9} -- turn inheritance off
setInheritanceFlags $neckBone01 #all -- turn inheritance on
When I turn inheritance off then rotate the spine (offsetting its rotation from the spine bone), then turn inheritance back on my first neck bone snaps to match the rotation of the spine bone. I can go into the link info tab under hierarchy and turn the inheritance on and off manually it all works fine.
If anyone out there has overcome this issue please let me know how, thanks.
setInheritanceFlags $neckBone01 #{1,2,3,7,8,9} -- turn inheritance off
setInheritanceFlags $neckBone01 #all -- turn inheritance on
When I turn inheritance off then rotate the spine (offsetting its rotation from the spine bone), then turn inheritance back on my first neck bone snaps to match the rotation of the spine bone. I can go into the link info tab under hierarchy and turn the inheritance on and off manually it all works fine.
If anyone out there has overcome this issue please let me know how, thanks.
