snnib.blender.utils.collection_utils.ensure_collection¶
- snnib.blender.utils.collection_utils.ensure_collection(path: str, parent: bpy.types.Collection = None) bpy.types.Collection[source]¶
returns collection of name
returns collection of name
creates new collection of name, if non-existent
- Parameters
- path
str
path to the collection relative to parent
path to the collection as Parent0/Parent1/…/Child
- parent
bpy.types.Collection, optional
parent collection
- the default is None
uses bpy.context.scene.collection
Raises
- Returns
- current
bpy.types.Collection
collection of name
- Dependencies
bpy
logging