From 0c64aeb84ff3a5ace706f1a472f015ef67c19cdf Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 7 Oct 2019 13:29:20 +0200 Subject: [PATCH] fix(global): little cleanup - was used old label `template` were `anatomy` should be - it was getting filled templates as object not as dictionary --- pype/plugins/global/publish/collect_anatomy.py | 4 ++-- pype/plugins/global/publish/collect_templates.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pype/plugins/global/publish/collect_anatomy.py b/pype/plugins/global/publish/collect_anatomy.py index b053a3a0d1..9412209850 100644 --- a/pype/plugins/global/publish/collect_anatomy.py +++ b/pype/plugins/global/publish/collect_anatomy.py @@ -9,11 +9,11 @@ from pypeapp import Anatomy import pyblish.api -class CollectTemplates(pyblish.api.ContextPlugin): +class CollectAnatomy(pyblish.api.ContextPlugin): """Collect Anatomy into Context""" order = pyblish.api.CollectorOrder - label = "Collect Templates" + label = "Collect Anatomy" def process(self, context): context.data['anatomy'] = Anatomy() diff --git a/pype/plugins/global/publish/collect_templates.py b/pype/plugins/global/publish/collect_templates.py index 8113f1d763..b3aecca21a 100644 --- a/pype/plugins/global/publish/collect_templates.py +++ b/pype/plugins/global/publish/collect_templates.py @@ -82,5 +82,5 @@ class CollectTemplates(pyblish.api.InstancePlugin): # We take the parent folder of representation 'filepath' instance.data["assumedDestination"] = os.path.dirname( - (anatomy.format(template_data)).publish.path + (anatomy.format(template_data))["publish"]["path"] )