RPCollection: ヘルパー

RPCollection - superclass: Helper; super-superclass:Node - classID: #(788030612, 1741385839) 

Reactor Dynamics システムは廃止され、3ds Max 2012 から削除されました

   

> MAXWrapper > ノード > ヘルパー > reactor > RPCollection

コンストラクタ:

RPCollection ... rctRPCollection ... 

   

プロパティ:

.disabled: boolean 

true に設定した場合、RPCollection が無効になります。

   

.internalSteps (Internal_Steps) : integer 

Rope シミュレーションによって実行されるキーフレームごとの内部サブステップの数をコントロールします。

   

インタフェース

Interface:rctRopeCollectionInterface 

プロパティ:

.ropes: node by value array : Read|Write 

コレクション内の rope ノードの配列を取得/設定します。

   

.disabled: boolean : Read|Write 

true に設定すると、コレクションを使用不可能にします。

   

メソッド:

<boolean>addRope <node>node 

コレクションに rope ノードを追加します。正常に終了した場合、 true を返します。ノードに reactor_Rope: モディファイヤが適用されていない場合は、 false を返します。

   

<boolean>removeRopeIndex <integer>index 

インデックス指定された rope ノードをコレクションから削除します。正常に終了した場合は true を返します。

   

<boolean>removeRope <node>node 

指定された rope ノードをコレクションから削除します。正常に終了した場合は true を返します。

   

<integer>getNumRope() 

コレクション内の rope ノードの数を返します。

例:

rpc = RPCollection()--create a Rope collection
$RPCollection:RPCollection01 @ [0.000000,0.000000,0.000000]
s = Helix()--create a Helix shape
$Helix:Helix01 @ [0.000000,0.000000,0.000000]
rpc.addRope s--try to add to collection
false--you cannot, no reactor_rope added
addmodifier s (reactor_Rope())--add modifier to turn Helix to rope
OK
rpc.addRope s--try to add the Helix again
true--this time it worked.
rpc.ropes--take a look at the list of ropes
#($Editable_Spline:Helix01 @ [0.000000,0.000000,0.000000])
rpc.removeRope s--remove the rope by node
true--it is gone.
rpc.ropes = #($Helix01)--add it again, this time directly as array
#($Editable_Spline:Helix01 @ [0.000000,0.000000,0.000000])
rpc.getNumRopes()--see how many ropes there are
1--one as expected!

関連事項