Notifications
Clear all

[Closed] Obtaining selection level in scripted modifier

Hi,
I’m trying to develop a simpleMeshMod modifier and I’ve encountered a problem. How to get the selection level of the mesh?
In C++ it was simple:

if (mesh.selLevel == MESH_VERTEX)

Unfortunately I can’t find the Maxscript equivalent of this function.

2 Replies

From the maxscript page here:

getSelectionLevel <maxobject>
Get the subObject level of MAXObject. If MAXObject is a node, this method operates on the base object. This method is applicable to base editables, and select and edit modifiers.

-Eric

Unfortunately I get the –Unknown system exception everytime I call it on TriMesh.