v1.0
Selects all elements using a selection filter.
oReturn = SelectAllUsingFilter( [SelFilter], [CheckComponentVisibility], [AffectSelectionList], [CheckObjectSelectability] ); |
If SelectFlag is False, returns XSICollection containing the objects.
Parameter | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
SelFilter | FilterConstant |
Selection filter to use. Default Value: Current selection filter |
||||||
CheckComponentVisibility | siComponentVisibilityMode |
weither or not the command should apply to visible components only Default Value: siIgnoreComponentVisibility
|
||||||
AffectSelectionList | Boolean |
True to select objects, False to return a list of objects. Default Value: True |
||||||
CheckObjectSelectability | Boolean |
Specifies whether to select objects that marked as unselectable. Default Value: False
|
' 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" |
' 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 |