From ecc1b9063e8923461fad1a2ebde39c3fd4bd2898 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Fri, 14 Dec 2018 13:35:37 +0100 Subject: [PATCH] - fixed creating of hierarchical attributes --- pype/ftrack/actions/action_create_cust_attrs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pype/ftrack/actions/action_create_cust_attrs.py b/pype/ftrack/actions/action_create_cust_attrs.py index bd0a03b475..3c86570e32 100644 --- a/pype/ftrack/actions/action_create_cust_attrs.py +++ b/pype/ftrack/actions/action_create_cust_attrs.py @@ -497,7 +497,12 @@ class CustomAttributes(BaseAction): def get_entity_type(self, attr): if 'is_hierarchical' in attr: if attr['is_hierarchical'] is True: - return {'is_hierarchical':True} + type = attr['entity_type'] if ('entity_type' in attr) else 'show' + + return { + 'is_hierarchical': True, + 'entity_type': type + } if 'entity_type' not in attr: raise CustAttrException('Missing entity_type')