ddg.blender.scene module
- ddg.blender.scene.clear(scene=None, deep=False, remove_collections=False)[source]
Unlink all objects contained in a scene.
Clears
scene.collection.- Parameters:
- scenebpy.types.Scene (default=None)
Scene to clear. If the argument is not provided or
None,bpy.context.scenewill be set to scene.- deepbool (default=False)
Delete the data corresponding to the objects.
- remove_collectionsbool (default=False)
Remove the collections (and its children) from the scene.