Removes a single object from any and all groups that it is a member. Neither the object nor the group can be a reference object.
rhinoscriptsyntax.RemoveObjectFromAllGroups (object_id)
rhinoscript.group.RemoveObjectFromAllGroups (object_id)
object_id |
Required. String or Guid. The identifier of the object. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
object = rs.GetObject("Select object")
if object: rs.RemoveObjectFromAllGroups(object)