ApplyOperation function

The ApplyOperation function is used by the Quad menu for activating object functions.

Example:

fn ApplyOperation ctype oper =

(

If (Modpanel.getcurrentObject () == $.baseobject) then oper $

If Classof (Modpanel.getcurrentObject ()) == ctype then

(

oper $.modifiers[modPanel.getModifierIndex $

Modpanel.getcurrentObject ()]

)

)

ApplyOperation Edit_Mesh meshops.StartExtrude

This example starts the extrude function on EditMesh if it is either the currently selected modifier or baseobject.

See also

Quad Menu

MAXScriptFunction List