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. | required |
Returns
| Name | Type | Description |
|---|---|---|
| None | This function does not return a value. |