Update the outline operators.

Make a setup to generate the socket collection
This commit is contained in:
2024-05-14 00:04:10 +02:00
parent 61e3bcaaf3
commit 9758304066
3 changed files with 83 additions and 1 deletions
+18
View File
@@ -49,7 +49,25 @@ class Outline:
'Game Object': Collection(name='Game Object', color='COLOR_05')
}
self._socket = Collection(name='Socket', color='NONE')
@property
def collections(self) -> [str]:
"""Returns all collections in a dict"""
return self._collections
@property
def get_placeholder_collection(self):
return bpy.data.collections.get(self.collections['Placeholder'].name)
@property
def get_icon_collection(self):
return bpy.data.collections.get(self.collections['Icon'].name)
@property
def get_game_object_collection(self):
return bpy.data.collections.get(self.collections['Game Object'].name)
@property
def socket(self) -> Collection:
return self._socket