CLCollection: ヘルパー

CLCollection - superclass: Helper; super-superclass:Node - classID: #(998836098, 492768222) 

リアクタ ダイナミック システムは廃止され、3ds Max 2012 から削除されました

   

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

コンストラクタ:

CLCollection ... rctCLCollection ... 

   

プロパティ

.disabled : boolean 

true に設定すると、シミュレーションでは CLCollection が考慮されません。

   

.internalSteps (Internal_Steps) : integer 

Cloth シミュレーションによって実行されるキーフレームごとの内部サブステップの数をコントロールします。これは、[拡張設定](Advanced)ロールアウトの[内部ステップ](Internal Steps)編集ボックスに対応するものです。

   

インタフェース

Interface:rctClothCollectionInterface 

プロパティ:

.cloths : node by value array : Read|Write 

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

   

.disabled : boolean : Read|Write 

コレクションを使用可能/使用不可能にします。

   

メソッド:

<boolean>addCloth <node>node 

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

   

<boolean>removeClothIndex <integer>index 

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

   

<boolean>removeCloth <node>node 

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

   

<integer>getNumCloths() 

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

例:

clc = CLCollection() --create a CLCollection
-->$CLCollection:CLCollection01 @ [0.000000,0.000000,0.000000]
b = Box() --create a Box
-->$Box:Box01 @ [0.000000,0.000000,0.000000]
clc.addCloth b--try to add the Box to the Cloth
-->false --you cannot - no reactor cloth modifier!
addModifier b (reactor_cloth())--add reactor_cloth to the Box
-->OK
clc.addCloth b --and try again
-->true --this time it works!
clc.getNumCloths() --check the number of cloths in the collection
-->1 --there is one
clc.cloths--let's see the whole array
-->#($Editable_Mesh:Box01 @ [0.000000,0.000000,0.000000])
clc.removeClothIndex 1 --remove the one cloth from the list
-->true --gone!
clc.removeClothIndex 1 --try to remove it again
-->false --you cannot, there are none left...

関連事項