ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
modPanel.getCurrentObject()
modPanel.getCurrentObject()Returns the modifier or base object currently selected in the Modify panel stack.
modPanel.getModifierIndex <node> <modifier>Returns the index of the given modifier in the modifier stack for the given node.
So this is what you need:
modPanel.getModifierIndex $ (modPanel.getCurrentObject())