User:Sybren/SfA/collections-API

= Scripting for Artists: Collections API =


 * First investigations: Python console + using TAB
 * `C.scene.coll `
 * `C.scene.collection.children. ` → no `new` method, but do see `link` method.
 * Conclusion: create a new collection somehow, and link it to the scene master collection.
 * `bpy.data.coll ` → `bpy.data.collections` → add period → `bpy.data.collections. `: `new` method.

Create collection
Pitfall:

Always use the returned collection, and do NOT use `bpy.data.collections[the name I just used]` expecting it is the same.