PDA

View Full Version : Select shape node from its transform


ronviers
12-12-2008, 09:43 PM
Here is the way I have found to select the shape node:





string $results[]=`spaceLocator`;

string $tempShapeName[]=`ls -sl -dag -s`;

setAttr ($tempShapeName[0]+".visibility") 0;





But this doesn't seem very good. Is there a simpler way to do this?

dbiggs
12-12-2008, 10:03 PM
Here ya go:

string $shapeNodes[] = `listRelatives -fullPath -shapes $selection`;

ronviers
12-12-2008, 10:09 PM
Thanks! I never noticed the listRelatives command.:)

CGTalk Moderation
12-12-2008, 10:09 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.