hey,

suppose i have to child objects child_01 & child_02 both are in 
different hierarchy.

i want to match child_02's world transform (translation & rotation) to 
child_01.

parent constraint is one option but do for lots of objects don't know it's 
a good idea or not.

Other option:

i can query child_02's world transform by xform but how can i transfer it 
to child_01
by it be done by matrix ??

i tried:

matrix_01 = cmds.xform("child_02", q=True, ws=True, m=True)
cmds.setAttr("child_01.worldMatrix", matrix_01, type="matrix")

but it's not working.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/fd7fc5a1-17ff-4dcb-926a-2070e3f0fd3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to