I'm wondering if there is a way to essentially put an object in another 
object's space without parenting them. My rigging components are not parented 
to each other. I set up the hierarchy relationships with parent constraints. 
But scale constraints do not constrain their children in their parent's space.
Heres a script of the relationships in a basic form. If you scale the 
top_sphere, youll notice the bot_sphere does not skew like the mid_sphere. Any 
help would be much appreciated, thanks! (sorry if this makes no sense)

import maya.cmds as cmds

top_sphere = cmds.polySphere(ch=0)[0]

mid_sphere = cmds.polySphere(ch=0)[0]
cmds.move(5,0,0,mid_sphere)
cmds.rotate(30,0,0,mid_sphere)
mid_sphere_offset = cmds.group(em=1)
#put mid_sphere_offset in top's space with
cmds.parentConstraint(top_sphere, mid_sphere_offset)
cmds.parent(mid_sphere, mid_sphere_offset)
cmds.scaleConstraint(top_sphere, mid_sphere_offset)

bot_sphere = cmds.polySphere(ch=0)[0]
cmds.move(10,0,0,bot_sphere)
cmds.rotate(60,0,0,bot_sphere)
bot_sphere_offset = cmds.group(em=1)
#put bot_sphere_offset in top's space with
cmds.parentConstraint(mid_sphere, bot_sphere_offset)
cmds.parent(bot_sphere, bot_sphere_offset)
cmds.scaleConstraint(mid_sphere, bot_sphere_offset)

-- 
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/a023d5f3-c849-4b96-b803-84f92a2de1cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to