v1.0
エレメントの選択を切り替えて選択を設定します。
注: SelectionList 引数にエラーが含まれる場合、コマンドは失敗します。
SetAndToggleSelection( SelectionList, [HierarchyLevel], [CheckObjectSelectability] );  | 	
| パラメータ | タイプ | 説明 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SelectionList | 文字列 | エレメントのリスト。 リスト内の非選択エレメントは選択され、選択エレメントは選択解除されます。 | ||||||||||||
| HierarchyLevel | 文字列 | 
 階層のオブジェクトを選択する方法を指定します。 			 デフォルト値: "ASITIS" 
  | 
	||||||||||||
| CheckObjectSelectability | Boolean | 
 選択不可としてマーキングされたオブジェクトを選択するかどうかを指定します。 			 デフォルト値: False 
  | 
	
' The following uses SetAndToggleSelection to toggle ' the selection state of the objects NewScene CreatePrim "Cone", "MeshSurface" CreatePrim "Cube", "MeshSurface" Translate , 0.315084726066844, 7.40693410939845, -0.740693410939845, _ siRelative, siView, siObj, siXYZ CreatePrim "Sphere", "MeshSurface" Translate , 9.76762650807222, 1.64598535764408, -0.164598535764408, _ siRelative, siView, siObj, siXYZ SelectObj "cone", , True AddToSelection "cube", , True SetAndToggleSelection "cone, cube, sphere" logMessage "Cone and Cube were selected" logMessage "Only sphere should be selected now"  |