ObjectsByType

Returns the identifiers of all objects based on the objects' geometry type.

Syntax

rhinoscriptsyntax.ObjectsByType (type, select=False, state=0)

rhinoscript.selection.ObjectsByType (type, select=False, state=0)

Parameters

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.

Value

Description

0

All objects

1

Point

2

Point cloud

4

Curve

8

Surface or single-face brep

16

Polysurface or multiple-face

32

Mesh

256

Light

512

Annotation

4096

Instance or block reference

8192

Text dot object

16384

Grip object

32768

Detail

65536

Hatch

131072

Morph control

134217728

Cage

268435456

Phantom

536870912

Clipping plane

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..

Value

Description

0

All objects

1

Normal Objects

2

Locked Objects

4

Hidden Objects

Returns

List

A list of Guids identifying the objects if successful.

Example

import rhinoscriptsyntax as rs

objs = rs.ObjectsByType(4 | 8, True)

Also See