From 8e28004450435a32f76938e0d6ae4c3984b76093 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 13 Jul 2021 10:33:42 +0200 Subject: [PATCH] attribute definitions have id --- openpype/pipeline/lib/attribute_definitions.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openpype/pipeline/lib/attribute_definitions.py b/openpype/pipeline/lib/attribute_definitions.py index 7a310c824e..efcb8f6d2b 100644 --- a/openpype/pipeline/lib/attribute_definitions.py +++ b/openpype/pipeline/lib/attribute_definitions.py @@ -1,5 +1,6 @@ import re import collections +import uuid from abc import ABCMeta, abstractmethod import six @@ -43,9 +44,14 @@ class AbtractAttrDef: self.key = key self.label = label self.tooltip = tooltip + self._id = uuid.uuid4() self.__init__class__ = AbtractAttrDef + @property + def id(self): + return self._id + def __eq__(self, other): if not isinstance(other, self.__class__): return False