Returns the identifiers of all objects based on the objects' group name.
rhinoscriptsyntax.ObjectsByGroup (group_name, select=False)
rhinoscript.selection.ObjectsByGroup (group_name, select=False)
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). |
List |
A list of Guids identifying the objects if successful. |
import rhinoscriptsyntax as rs
group = rs.GetString("Group to select")
if group: rs.ObjectsByGroup( group, True )