as shaun suggested, clear the selection before creating another joint, that's it...
E.Ozgur Yilmaz Lead Technical Director eoyilmaz.blogspot.com www.ozgurfx.com On Sun, Jun 6, 2010 at 9:00 AM, Shaun Friedberg (Pyrokinesis) < [email protected]> wrote: > 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 > -- http://groups.google.com/group/python_inside_maya
