In this particular case I'm using it for parenting nodes. I'm new to using pymel and since it works I figure it's legit.
On Apr 22, 3:49 pm, deanareeno <[email protected]> wrote: > Just for clarification, are you saying that you can use the setParent > command to parent objects? Because my usage of setParent has always > been with UI controls -- I thought that's what it was intended for. > > Cheers, > > -DW > > > On Thu, Apr 22, 2010 at 11:26 AM, shawnpatapoff <[email protected]> > > wrote: > > > Is there anyway around Maya selecting the object that you're parenting > > > when using setParent? Ideally I would like to do this: > > > > a = ls(createNode('transform', ss=True)) > > > b = ls(createNode('transform', ss=True)) > > > > b[0].setParent(a) > > > > without 'b' being reselected. > > > I can of course clear the selection if I need to. Would be nice if > > > there was a hook in setParent(ss=True) > > > > Cheers, > > > Shawn > > --http://groups.google.com/group/python_inside_maya -- http://groups.google.com/group/python_inside_maya
