import maya.cmds as mc
for i in range(3):
    mc.joint(p=(0,i,0))
    mc.select(clear=True)


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Vitor Lôbo Ramos
Sent: Sunday, June 06, 2010 2:39 PM
To: python_inside_maya
Subject: [Maya-Python] Re: Techniques for disconnect joints

Other form:

cmds.joint( p=(0, 0, 0), name='jointA' )
cmds.joint( p=(0, 1, 0), name='jointB' )
cmds.joint( p=(0, 2, 0), name='jointC' )
cmds.parent (cmds.parent ('jointB',w=True),'jointA',w=True)

suggestions?



On 5 jun, 23:13, Vitor Lôbo Ramos <[email protected]> wrote:
> 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

Reply via email to