mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-03 01:14:54 +01:00
gave access to attr definitions
This commit is contained in:
parent
aaafbf8eeb
commit
5f64741b6d
1 changed files with 8 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ class FamilyAttributeValues(dict):
|
|||
|
||||
self._last_data = copy.deepcopy(values)
|
||||
|
||||
@property
|
||||
def attr_defs(self):
|
||||
return self._attr_defs
|
||||
|
||||
|
||||
class AvalonInstance:
|
||||
"""Instance entity with data that will be stored to workfile.
|
||||
|
|
@ -97,6 +101,10 @@ class AvalonInstance:
|
|||
def data(self):
|
||||
return self._data
|
||||
|
||||
@property
|
||||
def family_attribute_defs(self):
|
||||
return self._data["family_attributes"].attr_defs
|
||||
|
||||
def change_order(self, keys_order):
|
||||
data = collections.OrderedDict()
|
||||
for key in keys_order:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue