|03-10-2009, 08:25 PM||#1|
Join Date: Aug 2007
selecting shape nodes
How can I select the shape nodes from the list of selected objects? The selected objects are curves.
I am getting the transform nodes by:
string $selected=`ls -sl`;
I have my script working by using the pickWalk down but is there a way to read the shape nodes of the selected curves into an array?
Edit: Never mind, figured it out.
string $selected=`ls -dag -g -sl`;
Last edited by ronviers : 03-10-2009 at 09:39 PM.
|03-11-2009, 02:49 PM||#5|
Join Date: Jul 2007
pickwalk will physically change your selection and will slow your script down. I suggest using something like this: it will give you the most control over your selections (IE: only transform objects and only transforms that have a specific shape type (meshes, nurbscurves, whatever you want)
you will need to change the -type flag to "nurbsCurve" and maybe add another -type flag for "nurbsSurface" if you need those too.
Also, I use the -long flag to get full paths of nodes to avoid name clashes. you may or may not need it for your purposes.
|03-11-2009, 04:48 PM||#7|
Join Date: Sep 2003
Thread automatically closed
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.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|