Notifications
Clear all

[Closed] Checking selection type

Okay so I’ve spent probably an hour or so searching on google and the Maxscript reference trying to find out how the hell to check the active selection for a certain selection type (#Vertex, #Face, #Edge, etc) and clearly I’m looking in the wrong directions. I´m not learning anything this way.

I want to create a context-sensitive script which executes different scripts depending on what is selected (vertex, face, edge).

2 Replies

use the global max variable

subObjectLevel

the level is then dependent on the type of object
the with a mesh object
0 == object level
1 == vertex level
2 == edge level
3 == face
4 == polygon
5 == element
for an editable poly
0 == object level
1 == vertex level
2 == edge level
3 == border
4 == polygon
5 == element
with the added complexity at a lower “mesh level” some of these are really the same such as edge and border, face/polygon/element this can be illustrated with

getSelectionLevel  $

Precisely what I was looking for. Thanks!