generated from stilobique/BlenderTemplate
Outline operator, set all collection
This commit is contained in:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user