View Full Version : selection..

04 April 2003, 09:38 PM
is there any function that tells what kind of selection is selected ?
'cause I wanna do a script with something like this:

if SelectionIsFaces
do something ;

if SelectionIsEdges
do something else ;

is this possible?

04 April 2003, 12:12 AM
You can tell whether you're looking at faces or edges by looking at the name that gets returned from ls.

So, if you do an ls -sl and get back


that's a face

and if you get


that's an edge.

You can use the gmatch command to figure out which one you have.

-- Mark

CGTalk Moderation
01 January 2006, 08:00 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.