getInterface Function


getInterface {<MAXWrapper> | <MAXClass>} <InterfaceNameString>


getInterface returns the interface specified by the InterfaceNameString, or undefined if the interface does not exist.

If the first argument is a node, the node-level interfaces for that node are returned. If you want the interfaces for the node's base object, you need to specify <node>.baseobject as the argument.

For example:


$Sphere:Sphere01 @ [0.000000,0.000000,0.000000]

theAInterface = getInterface s "IAssembly"


converttopoly s

$Editable_Poly:Sphere01 @ [0.000000,0.000000,0.000000]

theEPInterface = getInterface s "EditablePoly"


theEPInterface = getInterface s.baseobject "EditablePoly"



If the argument is a MAXClass, only static interfaces for that class are returned. Typically, only utility plugin classes define static interfaces.

For example:

getInterface Plug_in_Manager "PluginMgrAction"


See also

GetInterfaces Interface Inspector

Class and Object Inspector Functions

Core Interfaces

Other Interfaces