ddg.visualization.blender.collection module
Collection of functions to manage blender collections
- ddg.visualization.blender.collection.collection(name, parent=None, children=None)[source]
Creates a new collection or greps an existing one if a collection with given name exists. If the collection already exists the remaining parameters are ignored.
- Parameters:
- namestr
.nameof the collection.- parentbpy.types.Collection (default=None)
Parent collection to link newly generated collection to. If
None, collections get linked to bpy.context.scene.collection.- children: list of strings or lists (default=None)
.nameof children that will be generated when generating a new collection. If an entry is a list, the first string will be the child’s.nameand the others the child’s children’s.names.
- Returns:
- bpy.types.Collection
Reference to the created Blender collection.