move_to_collection
move_to_collection(objs, target_collection)Move one or many objects into a target collection.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| objs | bpy.types.Object or list[bpy.types.Object] |
A single object or list of objects to move. | required |
| target_collection | bpy.types.Collection |
The collection to move the objects into. Each object is unlinked from all of the collections it is currently in. | required |