SelectAllUsingFilter

導入

v1.0

詳細

選択フィルタですべてのエレメントを選択します。

スクリプト構文

oReturn = SelectAllUsingFilter( [SelFilter], [CheckComponentVisibility], [AffectSelectionList], [CheckObjectSelectability] );

戻り値

SelectFlag が False の場合、オブジェクトを含む XSICollection を戻します。

パラメータ

パラメータ タイプ 説明
SelFilter FilterConstant 使用する選択フィルタ

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

CheckComponentVisibility siComponentVisibilityMode コマンドを表示コンポーネントのみに適用すべきかどうかを指定します。

デフォルト値: siIgnoreComponentVisibility

指定可能な値:

説明:

siIgnoreComponentVisibility コンポーネントが表示されているかどうかにかかわらず、コマンドが適用されます。
siCheckComponentVisibility 表示されたコンポーネントにのみ、コマンドが適用されます。
AffectSelectionList Boolean オブジェクトを選択する場合は True、オブジェクトのリストを戻す場合は False

デフォルト値: True

CheckObjectSelectability Boolean 選択不可としてマーキングされたオブジェクトを選択するかどうかを指定します。

デフォルト値: False

指定可能な値:

説明:

False 選択不可としてマーキングされたオブジェクトも選択します。
True 選択不可としてマーキングされたオブジェクトは選択しません。

1. VBScript の例

' Selects all objects. Objects that are already selected remain selected.

SelectAllUsingFilter "object"

' Select all lights. This deselect anything that is not a light.

SelectAllUsingFilter "light"

' Select all points on active objects

SelectAllUsingFilter "Point"

2. VBScript の例

' Create a sphere, hide some polygons, deselect all polygons, select all using filter

' result = only the visible polygons are selected

NewScene

CreatePrim "Sphere", "MeshSurface"

ActivatePolygonSelTool

SelectGeometryComponents "sphere.poly[0-20]"

SITogglePolygonVisibility

DeselectAll

SelectAllUsingFilter, siCheckComponentVisibility