databpy
  • Home
  • Attributes
  • API
  1. Collections
  2. move_to_collection
  • Function reference
  • Attribute
    • named_attribute
    • store_named_attribute
    • remove_named_attribute
    • AttributeDomains
    • AttributeTypes
    • AttributeArray
  • Collections
    • create_collection
    • move_to_collection
  • Objects
    • create_object
    • create_mesh_object
    • create_curves_object
    • create_pointcloud_object
    • create_bob
    • evaluate_object
    • BlenderObject
    • BlenderObjectAttribute
    • BlenderObjectBase
    • LinkedObjectError

On this page

  • move_to_collection
    • Parameters
    • Returns
  1. Collections
  2. move_to_collection

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.