Doesn't a parent constraint do all this all ready for you? On Sun, Apr 24, 2011 at 6:14 PM, notanymike <[email protected]> wrote:
> Hi, I'm trying to come with some sort of transform node that can have > multiple transform matrices influencing it's own translate,rotate,and > scale attributes, but still allows for control, animation, and > preservation of the user-intended position of that transform. > Basically it's a space-switching/dynamic parenting transform.I have > two ideas for what attributes to create on the transform: Either have > a compound message attributes or compound matrix attributes that the > user can add or delete, with an enable and/or weight attribute for > each added parent. The only two parts I'm stuck on is how to write out > "when the enable and/or weight attribute is changed, recompute the > transforms position" in python, and how to re-compute the transform's > final position after parents have been added/removed from the compound > attribute. Does anyone have time to help me on this? I'm brand new to > python, but I'm starting to understand the syntax. It's structure I > have to learn somehow... > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
