From 5e2615e18ace462a7c507047497a4497ce2f8cf4 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 13 Jul 2021 11:21:43 +0200 Subject: [PATCH] implemented iterators --- openpype/pipeline/creator_plugins.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openpype/pipeline/creator_plugins.py b/openpype/pipeline/creator_plugins.py index 0236ab8975..7141967890 100644 --- a/openpype/pipeline/creator_plugins.py +++ b/openpype/pipeline/creator_plugins.py @@ -36,6 +36,17 @@ class FamilyAttributeValues(dict): self._last_data = copy.deepcopy(values) + def keys(self): + return self._attr_defs_by_key.keys() + + def values(self): + for key in self._attr_defs_by_key.keys(): + yield self._data.get(key) + + def items(self): + for key in self._attr_defs_by_key.keys(): + yield key, self._data.get(key) + @property def attr_defs(self): return self._attr_defs