PDA

View Full Version : selection..


(B-HOLM)
04-04-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?

mark_wilkins
04-05-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

pSphere.f[1]

that's a face

and if you get

pSphere.e[1]

that's an edge.

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

-- Mark

CGTalk Moderation
01-14-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.