On Thu, Apr 20, 2017, 5:41 AM Daniel Ruiz <[email protected]> wrote:

> it should be
> b[0].setParent(a[0])
>
> you are trying to parent to an array XD
>

I think you win the award for reviving the oldest thread. This last post
was almost 7 years ago, to the day! :-)


> On Thursday, April 22, 2010 at 2:26:26 PM UTC-4, Poff 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/b4b4752b-be39-4139-92bf-9afcdfc9af28%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/b4b4752b-be39-4139-92bf-9afcdfc9af28%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1%3DYx8DNgnyX%2BE_WyLHQR%2Boh6o_gZmcc-XA%2BywNXRTv7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to