Removes a single object from an existing group.
rhinoscriptsyntax.RemoveObjectFromGroup (object_id, group_name)
rhinoscript.group.RemoveObjectFromGroup (object_id, group_name)
object_id |
Required. String or Guid. The identifier of the object. |
group_name |
Required. String. The name of an existing group. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
name = "NewGroup"
id = rs.GetObject("Select object")
if name: rs.RemoveObjectFromGroup(id,name)