Removes one or more objects from an existing group.
rhinoscriptsyntax.RemoveObjectsFromGroup (object_ids, group_name)
rhinoscript.group.RemoveObjectsFromGroup (object_ids, group_name)
object_ids |
Required. List. An array of object identifiers. |
group_name |
Required. String. The name of an existing group. |
Number |
The number of objects removed from the group if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
group = "NewGroup"
ids = rs.GetObjects("Select objects")
if ids: rs.RemoveObjectsFromGroup(ids,group)