Group Operators

bpy.ops.group.create(name="Group")

Create an object group from selected objects

Parameters:name (string, (optional, never None)) – Name, Name of the new group
bpy.ops.group.objects_add_active(group='')

Add the object to an object group that contains the active object

Parameters:group (enum in [], (optional)) – Group, The group to add other selected objects to
bpy.ops.group.objects_remove(group='')

Remove selected objects from a group

Parameters:group (enum in [], (optional)) – Group, The group to remove this object from
bpy.ops.group.objects_remove_active(group='')

Remove the object from an object group that contains the active object

Parameters:group (enum in [], (optional)) – Group, The group to remove other selected objects from
bpy.ops.group.objects_remove_all()

Remove selected objects from all groups