v1.0
選択
選択対象からエレメントを削除します。
注: SelectionList 引数にエラーが含まれる場合、コマンドは失敗します。
oReturn = RemoveFromSelection( SelectionList, [HierarchyLevel] ); |
選択対象から削除されるオブジェクトを含むXSICollectionを戻します。
| パラメータ | タイプ | 詳細 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SelectionList | 文字列 | 選択対象から削除するエレメントのリスト。 | ||||||||||||
| HierarchyLevel | 文字列 | 階層のオブジェクトを選択する方法を指定します。
デフォルト値: "ASITIS"
|
' The following creates 5 cylinders, select them all, then deselect one of them
NewScene
CreatePrim "Cylinder", "MeshSurface"
Duplicate "cylinder", , 2, 1, 1, 0, 0, 1, 0, 1
Translate , -3.30097087378641, 2.93327468983085, 0, _
siRelative, siView, siObj, siXYZ
Duplicate "cylinder1", , 2, 1, 1, 0, 0, 1, 0, 1
Translate , 7.65048543689321, -0.563344145729104, 0, _
siRelative, siView, siObj, siXYZ
Duplicate "cylinder2", , 2, 1, 1, 0, 0, 1, 0, 1
Translate , -5.32038834951456, -5.22550259314237, 0, _
siRelative, siView, siObj, siXYZ
Duplicate "cylinder3", , 2, 1, 1, 0, 0, 1, 0, 1
Translate , -0.621359223300971, 3.24408525299174, 0, _
siRelative, siView, siObj, siXYZ
SelectObj "cylinder*"
RemoveFromSelection "cylinder2"
logMessage "all cylinders except cylinder2 should be selected now"
|