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 to the exporter list
- 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_move(*, direction='UP')
Move exporter up or down in the exporter list
- Parameters
direction (enum in [
'UP'
,'DOWN'
], (optional)) – Direction, Direction to move the active exporter
- bpy.ops.collection.exporter_remove(*, index=0)
Remove exporter from the exporter list
- Parameters
index (int in [0, inf], (optional)) – Index, Exporter index
- bpy.ops.collection.objects_add_active(*, collection='')
Add selected objects to one of the collections the active-object is part of. Optionally add to “All Collections” to ensure selected objects are included in the same collections as 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