PDA

View Full Version : Sorting what type is the selection


gsusInAPixel
10-17-2007, 07:29 PM
Hello, When I have editable poly and some of its faces are selected. If I query what the selection is it returns the object and not its selected faces or verts etc. Is there a way I get acces to selected faces/edges/verts?

Thanks you!

PiXeL_MoNKeY
10-17-2007, 07:56 PM
Search for GetSelection in the Maxscript Help.

-Eric

gsusInAPixel
10-18-2007, 07:45 PM
Thank you! That command does return what my selection is. However when I try to compare it with an if statement. It returns true if selection is a face and the stament is looking for an object/vert etc. It's as though every component is selected. Here is how I have the script

typeOfSel = getSelectionLevel($)

if typeOfSel==#object then
print "selection is an object"

else typeOfSel==#Face
print "selection is a face"

Thanks again!

CGTalk Moderation
10-18-2007, 07:45 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.