v1.0
選択
エレメントを現在の選択対象に追加します。
注: SelectionList 引数にエラーが含まれる場合、コマンドは失敗します。
AddToSelection( SelectionList, [HierarchyLevel], [CheckObjectSelectability] ); |
| パラメータ | タイプ | 詳細 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SelectionList | 文字列 | 選択対象に追加するエレメントのリスト。
デフォルト値: n/a |
||||||||||||
| HierarchyLevel | 文字列 | 階層のオブジェクトを選択する方法を指定します。
デフォルト値: "ASITIS"
|
||||||||||||
| CheckObjectSelectability | ブール | 選択不可としてマーキングされたオブジェクトを選択するかどうかを指定します。
デフォルト値: False
|
'
' The following uses "AddToSelection" to add an object (ie: "cylinder")
' to the selection list
'
NewScene
CreatePrim "Cylinder", "MeshSurface"
CreatePrim "Cylinder", "MeshSurface"
Translate , 3.48352677058841, 0.127331217177334, -1.27331217177334E-02, _
siRelative, siView, siObj, siXYZ, , , siXYZ
AddToSelection "cylinder"
Application.LogMessage "object called cylinder should now be part of the selection list"
|
'
' The following uses "AddToSelection" to add an object (ie: "cone")
' to the selection as a branch selected element.
'
NewScene
CreatePrim "Cone", "MeshSurface"
CreatePrim "Cylinder", "MeshSurface"
Translate , -0.118156772275078, -5.87851913444323, 0.587851913444323, _
siRelative, siView, siObj, siXYZ
ParentObj "cone", "cylinder"
DeselectAll
AddToSelection "cone", "BRANCH"
Application.LogMessage "The object cone should now be branch selected"
Application.LogMessage "The cylinder child should be highlighted in gray to reflect this."
|