it should be 
b[0].setParent(a[0]) 

you are trying to parent to an array XD 

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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to