一般的に言えば、オブジェクト内のデータのノードを参照する必要はありません。ノードがオブジェクトに依存し、オブジェクトがノードに依存している場合、これがどのように多くの問題を引き起こすかがわかります。別の問題は、プラグインがインスタンス化されている場合です。次に、2 つのノードが 1 つのオブジェクトを指しています。どちらが正しいですか?
理想的には、ノード ポインタを必要としない方法でプラグインを設計する必要があります (つまり、WSModifier を作成するか、代わりにユーティリティとして動作します)。ノードの変換が必要な場合は、ノードへのポインタなしで取得できます:
http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_461915FA_31A2_49CE_84AF_2544B782ACA3_htm
The delegate local variable in a scripted plug-in that creates a scene object does not contain the node itself, but a the BaseObject of that node. As such, you can not access the node level properties of the object being created. An exception to this is the node’s transform, which is exposed to the scripted plug-in through a local variable called nodeTM . This variable is described in the applicable scripted plug-in type topics.
それでもノードと直接通信することにした場合は、クラスに依存するすべてのクラスのリストを取得できます。
refs.dependents
http://help.autodesk.com/view/3DSMAX/2015/ENU/?guid=__files_GUID_95453E22_A022_4543_B31C_A052CECD3598_htm
これにより、ノードを含むすべての依存関係のリストが取得されます。リストを反復処理し、最初に見つかったノードを使用します。