Returns the identifiers of all objects based on the objects' geometry type.
rhinoscriptsyntax.ObjectsByType (type, select=False, state=0)
rhinoscript.selection.ObjectsByType (type, select=False, state=0)
type |
Required. Number. The type(s) of geometry objects (points, curves, surfaces, meshes, etc.) that can be selected. Object types can be added together to filter several different kinds of geometry.
|
||||||||||||||||||||||||||||||||||||||
select |
Optional. Boolean. Select the objects. If omitted, the objects are not selected (False). |
||||||||||||||||||||||||||||||||||||||
state |
Optional. Number. The object state (normal, locked, and hidden). Object states can be added together to filter several different states of geometry..
|
List |
A list of Guids identifying the objects if successful. |
import rhinoscriptsyntax as rs
objs = rs.ObjectsByType(4 | 8, True)