ScriptSpot

Forum topic · General Scripting

modifier index question

By roosterMAP · 2012-04-06

Description

is there a method I can call to get the index of the modifier I have currently selected?

something along the lines of...

i = modPanel.getIndexOf $.modifiers[]

Comments (1)

modPanel.getCurrentObject()

jos · 2012-04-07

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())