Outline operator, set all collection

This commit is contained in:
stilobique committed 2024-05-09 02:23:33 +02:00
1 parent 70cb0e0069
commit 5585c8916c
2 files changed
+23 -13

No files matched your search

+10
View File
@@ -13,4 +13,14 @@ class ConfigBlendScene(bpy.types.Operator):
def execute(self, context):
print(f'[Pipeline] Generate outline')
for key, value in self._outline.collections.items():
print(f'[Pipeline] Check the collection {key}')
collection = bpy.data.collections.get(key)
if collection is None:
collection = bpy.data.collections.new(value.name)
collection.color_tag = value.color
context.scene.collection.children.link(collection)
return {'FINISHED'}