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

Reply via email to