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
+13 -13
View File
@@ -1,6 +1,7 @@
import bpy
from pathlib import Path
from dataclasses import dataclass
class FangeProject:
@@ -31,25 +32,24 @@ class FangeProject:
return self._project_path.joinpath(self._subdir_path, self._characters_path)
@dataclass
class Collection:
name: str
color: str
class Outline:
"""
Model about the Outline config.
"""
def __init__(self):
self._collections = {
'Placeholder': ['COLOR_01'],
'Icon': ['COLOR_04'],
'Game Object': ['COLOR_05']
'Placeholder': Collection(name='Placeholder', color='COLOR_01'),
'Icon': Collection(name='Icon', color='COLOR_04'),
'Game Object': Collection(name='Game Object', color='COLOR_05')
}
@property
def placeholder(self):
return 'Placeholder'
@property
def icon(self):
return 'Icon'
@property
def game(self):
return 'Game Object'
def collections(self) -> [str]:
"""Returns all collections in a dict"""
return self._collections