Hi guys, could somebody help me in a doubt?

I am trying to parent B to A, then move A, then unparent B. But at the end 
of these operations, B can´t return to his original position, he must keeps 
where A brought him.
How can I do that in the API?

My current code is:

*q1 = getMObject("A")*
*q2 = getMObject("B")*

*p = new_om.MFnDagNode(q1)*
*p.addChild(q2)*

*u = new_om.MDagModifier()*

*u.reparentNode(q2)   # here B returns to original position, thats the 
problem*
*u.doIt()*

Thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/89a295a8-835c-4a23-8dd5-6bc0399d55e4n%40googlegroups.com.

Reply via email to