getInterface {<MAXWrapper> | <MAXClass>} <InterfaceNameString>
getInterface
は、<InterfaceNameString>
で指定したインタフェースを返すか、インタフェースが存在しない場合には undefined
を返します。
最初の引数がノードの場合は、そのノードのノード レベルのインタフェースが返されます。
ノードの基本オブジェクトのインタフェースが必要な場合は、引数として <node>.baseobject
を指定する必要があります。
例
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>
引数が MAXClass の場合は、そのクラスの静的なインタフェースのみが返されます。
通常は、ユーティリティ プラグイン クラスでのみ静的なインタフェースが定義されます。
例
getInterface Plug_in_Manager "PluginMgrAction" <Interface:PluginMgrAction>