AddToCluster

カテゴリ

クラスタ

詳細

コンポーネントをクラスタに追加します。

スクリプト構文

AddToCluster( [InputObjs], [ActionWhenLocalMaterialsOverlap] );

パラメータ

パラメータ タイプ 詳細
InputObjs 文字列 クラスタおよびクラスタに追加するコンポーネントのリスト。

デフォルト値: 現在選択されている値

ActionWhenLocalMaterialsOverlap siActionWhenLocalMaterialsOverlap クラスタ (ローカルのマテリアルがある場合) が別のクラスタとオーバーラップした場合のアクションです。

デフォルト値:siPromptUser(ユーザ設定がされていない場合)

VBScript の例

'This example shows how to add elements to a cluster.
newscene
CreatePrim "Grid", "MeshSurface"
CreateCluster "grid.pnt[4,13,22,31,36-44,49,58,67,76]"
Translate , 0, 5, 0, siAbsolute, siParent, siObj, siY
'Cluster name can be changed.
SetValue "grid.polymsh.cls.Point.Name", "PlusShape"
'Add point to cluster.
'Cluster is first and points to add come after.
AddToCluster "grid.polymsh.cls.PlusShape, grid.pnt[30,32,48,50]"

関連項目

CopyCluster CreateCluster RemoveCluster RemoveFromCluster SIAddToCluster