#What's the most efficient methods to Freeze the rotation of the
joints?
#My suggestion:
# First i'm create threes locators for position and rotation:
cmds.spaceLocator(n='loc1')
cmds.move (1,0,0)
cmds.spaceLocator(n='loc2')
cmds.move (4,0,0)
cmds.spaceLocator(n='loc2')
cmds.move (8,0,0)
#
# and now rotate loc´s in X , Y, or Z axis:
cmds.setAttr('loc1.rx',90)
cmds.setAttr('loc2.rz',90)
cmds.setAttr('loc3.rx',30)
# and position and rotation joins in loc´s :
cmds.joint (n='joint1')
cmds.delete(
cmds.orientConstraint('loc1','joint1'),cmds.parentConstraint('loc1','joint1'))
cmds.joint (n='joint2')
cmds.delete(
cmds.orientConstraint('loc2','joint2'),cmds.parentConstraint('loc2','joint2'))
cmds.joint (n='joint3')
cmds.delete(
cmds.orientConstraint('loc3','joint3'),cmds.parentConstraint('loc3','joint3'))
# And finally, the rotation of the joints freezer
cmds.makeIdentity ('joint1',apply=True , rotate=True )
cmds.makeIdentity ('joint2',apply=True , rotate=True )
cmds.makeIdentity ('joint3',apply=True , rotate=True )
######################################################
# I would like to know more concise ways of doing this.
# Suggestions?
# I'm grateful to anyone who can help
--
http://groups.google.com/group/python_inside_maya