Richard Kazuo wrote:
> I didn't know about that! Actually it's the first time I ever use a 
> constraint hack on an animated object.
> Can you give some examples on when we use this method?
you see, getting object to align to another via constraining/deleting 
constrains internally work like this:
create constraint/connect constraint result attributes to objects 
transform attributes;
delete constraint, disconnecting anything on objects transform attributes;

now, when there's animation on it, transform attributes already contain 
connections to transform attributes
and you DON'T wantn to mess around with those directly. instead, create 
a temporary transform node (group),
parent it to your object's parent, apply/delete constrain on that temp 
node, then set translate/rotate/scale
channel values from temp node to your real object. delete temp node, and 
voila - you've set the values,
but to the object itself it's just the same as animator setting T/R/S 
values manually.
not a bullet proof method, but it works.

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to