Outline operator, set all collection

This commit is contained in:
2024-05-09 02:23:33 +02:00
parent 70cb0e0069
commit 5585c8916c
2 changed files with 23 additions and 13 deletions
+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'}