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.
EXAMPLE
s=sphere() --> $Sphere:Sphere01 @ [0.000000,0.000000,0.000000] theAInterface = getInterface s "IAssembly" --> <MixinInterface:IAssembly> converttopoly s --> $Editable_Poly:Sphere01 @ [0.000000,0.000000,0.000000] theEPInterface = getInterface s "EditablePoly" --> undefined theEPInterface = getInterface s.baseobject "EditablePoly" --> <MixinInterface:EditablePoly>
If the argument is a MAXClass, only static interfaces for that class are returned.
Typically, only utility plugin classes define static interfaces.
EXAMPLE
getInterface Plug_in_Manager "PluginMgrAction" <Interface:PluginMgrAction>