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?
Thanks, Richard On Tue, Dec 15, 2009 at 7:57 AM, viktoras <[email protected]> wrote: > Richard Kazuo wrote: > > Or even shorter, select two objects and then: > > > > import maya.cmds as cmds > > cmds.delete( cmds.parentConstraint( cmds.ls <http://cmds.ls>(sl=1) ) ) > > > > I prefer to use 'constraint hacks' as Phil said because sometimes the > > xform command doesn't return the values we are looking for, even in > > world mode. > when using constraint hacks (which i do as well), don't forget that IF > object has animation on it, you need some tweaks on this method, as > constraining already animated object will put a blend node between > transform channels and animation curve/constraint connections. > > -- > http://groups.google.com/group/python_inside_maya > -- http://groups.google.com/group/python_inside_maya
