Topic: version 4 MAXScript New Features/Edit Mesh
The ApplyOperation function is used by the Quad menu for activating object functions.
fn ApplyOperation ctype oper =
(
If (Modpanel.getcurrentObject () == $.baseobject) then oper $
If Classof (Modpanel.getcurrentObject ()) == ctype then
(
oper $.modifiers[modPanel.getModifierIndex $
Modpanel.getcurrentObject ()]
)
)
Example:
This example starts the extrude function on EditMesh if it is either the currently selected modifier or baseobject.
ApplyOperation Edit_Mesh meshops.StartExtrude
See also