You can also create joints using the createNode command, such as:

joint1 = cmds.createNode("joint")
joint2 = cmds.createNode("joint")
joint3 = cmds.createNode("joint")

It returns the joint name, so you can position it afterwards with xform if
you like. :)

Regards,
Richard



On Sat, Jun 5, 2010 at 11:38 PM, Ray Faenza <[email protected]> wrote:

> import maya.cmds as mc
>
> numJnts = 3
> pos = ((0,0,0),(0,1,0),(0,2,0))
> names = ("A","B","C")
>
> for cur in range(numJnts):
>   mc.joint(n=names[cur],p =(pos[cur][0],pos[cur][1],pos[cur][2]))
>   mc.select(cl=1)
>
>
>
>
> 2010/6/5 Vitor Lôbo Ramos <[email protected]>
>
>
>> I need a way different about something more correct to do this:
>>
>> cmds.group(n='A',em=True)
>> cmds.joint( p=(0, 0, 0), name='jointA' )
>> cmds.group(n='B',em=True)
>> cmds.joint( p=(0, 1, 0), name='jointB' )
>> cmds.group(n='C',em=True)
>> cmds.joint( p=(0, 2, 0), name='jointC' )
>>
>>
>> cmds.ungroup (cmds.ungroup (cmds.ungroup ('C'),'B'),'A')
>>
>>
>>
>> suggestions?
>>
>> --
>> http://groups.google.com/group/python_inside_maya
>>
>
>  --
> http://groups.google.com/group/python_inside_maya
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to