ObjectsByGroup

Returns the identifiers of all objects based on the objects' group name.

Syntax

rhinoscriptsyntax.ObjectsByGroup (group_name, select=False)

rhinoscript.selection.ObjectsByGroup (group_name, select=False)

Parameters

group_name

Required.  String.  The name of a group of objects.

select

Optional.  Boolean.  Select the objects.  If omitted, the objects are not selected (False).

Returns

List

A list of Guids identifying the objects if successful.

Example

import rhinoscriptsyntax as rs

group = rs.GetString("Group to select")

if group: rs.ObjectsByGroup( group, True )

Also See