I found if I just removed a lot of that in bracket stuff then I was able to 
print the result.  The more complicated version I found online. Still not 
sure why it didn't print in the first place. 

cmds.select( instanceGroup )
result =  cmds.listRelatives()
print result

On Wednesday, August 30, 2017 at 11:48:45 AM UTC-7, jettam wrote:
>
> The script below selects all objects found in a group. But, for some 
> reason it doesn't want to print the result. Could someone explain why it 
> doesn't print the result ?
>
> cmds.select( instanceGroup )
> result = cmds.select( cmds.listRelatives(cmds.ls(selection=True), 
> children=True))
> print result
>

-- 
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/f56a8442-0955-4861-9c69-e437801cd2e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to