Collection Operators#
- bpy.ops.collection.create(*, name='Collection')#
Create an object collection from selected objects
- Parameters:
name (string, (optional, never None)) – Name, Name of the new collection
- bpy.ops.collection.export_all()#
Invoke all configured exporters on this collection
- bpy.ops.collection.exporter_add(*, name='')#
Add Exporter
- Parameters:
name (string, (optional, never None)) – Name, FileHandler idname
- bpy.ops.collection.exporter_export(*, index=0)#
Invoke the export operation
- Parameters:
index (int in [0, inf], (optional)) – Index, Exporter index
- bpy.ops.collection.exporter_remove(*, index=0)#
Remove Exporter
- Parameters:
index (int in [0, inf], (optional)) – Index, Exporter index
- bpy.ops.collection.objects_add_active(*, collection='')#
Add the object to an object collection that contains the active object
- Parameters:
collection (enum in [], (optional)) – Collection, The collection to add other selected objects to
- bpy.ops.collection.objects_remove(*, collection='')#
Remove selected objects from a collection
- Parameters:
collection (enum in [], (optional)) – Collection, The collection to remove this object from
- bpy.ops.collection.objects_remove_active(*, collection='')#
Remove the object from an object collection that contains the active object
- Parameters:
collection (enum in [], (optional)) – Collection, The collection to remove other selected objects from
- bpy.ops.collection.objects_remove_all()#
Remove selected objects from all collections