SetAndToggleActiveElements

導入

v1.0

詳細

エレメントの起動を切り替えてアクティブ リストを設定します。

注: SelectionList 引数にエラーが含まれる場合、コマンドは失敗します。

スクリプト構文

SetAndToggleActiveElements( [SelectionList] );

パラメータ

パラメータ タイプ 説明
SelectionList 文字列 3D オブジェクトのリスト。 リスト内のアクティブ エレメントは非アクティブになり、非アクティブ エレメントがアクティブになります。

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

VBScript の例

' The following example uses SetAndToggleActiveElements to toggle 

' which objects the selection of points will be possible.

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

ActivateVertexSelTool

SetAndToggleActiveElements "cone, cube, sphere"

logMessage "Point selection was only possible on cone and cube"

logMessage "It should now be only possible on sphere"

関連項目

ActivateElements DeactivateElements SetActiveElements ToggleActiveElements