MainObjects(bpy_struct)

base class — bpy_struct

class bpy.types.MainObjects(bpy_struct)

Collection of objects

new(name, object_data)

Add a new object to the main database

Parameters:
  • name (string) – New name for the datablock.
  • object_data (ID) – Object data or None for an empty object.
Returns:

New object datablock.

Return type:

Object

remove(object)

Remove a object from the current blendfile.

Parameters:
  • object (Object, (never None)) – Object to remove.

Inherited Properties

Inherited Functions

References

Previous topic

MainNodeTrees(bpy_struct)

Next topic

MainParticles(bpy_struct)