SetActiveElements

導入

v1.0

詳細

アクティブな 3D オブジェクトを設定します。

アクティブ エレメントとは、選択可能なコンポーネントを持つオブジェクトです(ポイント、ポリゴン、エッジなど)。 アクティブ エレメントは特殊な色で強調表示されます。

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

スクリプト構文

SetActiveElements( [SelectionList] );

パラメータ

パラメータ タイプ 説明
SelectionList 文字列 有効にする 3D オブジェクトのリスト

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

VBScript の例

' The following example uses SetActiveElements to force on which

' objects the selection of components (points) should be possible

NewScene

CreatePrim "Cone", "MeshSurface"

CreatePrim "Cone", "MeshSurface"

Translate , 2.90741783678547, 1.11268802887747, -0.111268802887747, _

		siRelative, siView, siObj, siXYZ

SetSelFilter "point"

SetActiveElements "cone"

logMessage "Only the first cone should be active now (yellow) so the"

logMessage "selection of points should only be possible on that cone"

関連項目

ActivateElements DeactivateElements SetAndToggleActiveElements ToggleActiveElements