From d98d92e410517cfdc383afeec78684c0b1b0b569 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Tue, 9 Apr 2019 18:27:44 +0200 Subject: [PATCH] Revert "move icons" This reverts commit 7e5e20dbcc0adc089700270e97d893a38f2854c5. --- pype/plugins/global/publish/collect_templates.py | 10 +++------- pype/plugins/global/publish/integrate.py | 8 ++++---- .../global/publish/integrate_rendered_frames.py | 6 +++--- {pype/res => res}/ftrack/sign_in_message.html | 0 {pype/res => res}/icons/Thumbs.db | Bin {pype/res => res}/icons/inventory.png | Bin {pype/res => res}/icons/loader.png | Bin {pype/res => res}/icons/lookmanager.png | Bin {pype/res => res}/icons/workfiles.png | Bin {pype/res => res}/workspace.mel | 0 10 files changed, 10 insertions(+), 14 deletions(-) rename {pype/res => res}/ftrack/sign_in_message.html (100%) rename {pype/res => res}/icons/Thumbs.db (100%) rename {pype/res => res}/icons/inventory.png (100%) rename {pype/res => res}/icons/loader.png (100%) rename {pype/res => res}/icons/lookmanager.png (100%) rename {pype/res => res}/icons/workfiles.png (100%) rename {pype/res => res}/workspace.mel (100%) diff --git a/pype/plugins/global/publish/collect_templates.py b/pype/plugins/global/publish/collect_templates.py index 3fa603a2ae..fb6de894bd 100644 --- a/pype/plugins/global/publish/collect_templates.py +++ b/pype/plugins/global/publish/collect_templates.py @@ -1,9 +1,7 @@ -# import pype.api as pype +import pype.api as pype import pyblish.api -from pypeapp import Anatomy -import os class CollectTemplates(pyblish.api.ContextPlugin): @@ -13,8 +11,6 @@ class CollectTemplates(pyblish.api.ContextPlugin): label = "Collect Templates" def process(self, context): - # pype.load_data_from_templates() - - anatomy = Anatomy(project_name=os.environ.get("AVALON_PROJECT")) - context.data['anatomy'] = anatomy + pype.load_data_from_templates() + context.data['anatomy'] = pype.Anatomy self.log.info("Anatomy templates collected...") diff --git a/pype/plugins/global/publish/integrate.py b/pype/plugins/global/publish/integrate.py index 530c00f9ed..be7fc3bcf3 100644 --- a/pype/plugins/global/publish/integrate.py +++ b/pype/plugins/global/publish/integrate.py @@ -200,10 +200,10 @@ class IntegrateAsset(pyblish.api.InstancePlugin): src = os.path.join(stagingdir, fname) anatomy_filled = anatomy.format(template_data) - dst = anatomy_filled["publish"]["path"] + dst = anatomy_filled.publish.path instance.data["transfers"].append([src, dst]) - template = anatomy.anatomy["publish"]["path"] + template = anatomy.publish.path else: # Single file @@ -224,10 +224,10 @@ class IntegrateAsset(pyblish.api.InstancePlugin): src = os.path.join(stagingdir, fname) anatomy_filled = anatomy.format(template_data) - dst = anatomy_filled["publish"]["path"] + dst = anatomy_filled.publish.path instance.data["transfers"].append([src, dst]) - template = anatomy.anatomy["publish"]["path"] + template = anatomy.publish.path representation = { "schema": "pype:representation-2.0", diff --git a/pype/plugins/global/publish/integrate_rendered_frames.py b/pype/plugins/global/publish/integrate_rendered_frames.py index 626f03093a..ae11d33348 100644 --- a/pype/plugins/global/publish/integrate_rendered_frames.py +++ b/pype/plugins/global/publish/integrate_rendered_frames.py @@ -192,7 +192,7 @@ class IntegrateFrames(pyblish.api.InstancePlugin): template_data["frame"] = src_collection.format( "{padding}") % i anatomy_filled = anatomy.format(template_data) - test_dest_files.append(anatomy_filled["render"]["path"]) + test_dest_files.append(anatomy_filled.render.path) dst_collections, remainder = clique.assemble(test_dest_files) dst_collection = dst_collections[0] @@ -242,8 +242,8 @@ class IntegrateFrames(pyblish.api.InstancePlugin): template_data["frame"] = "#####" anatomy_filled = anatomy.format(template_data) - path_to_save = anatomy_filled["render"]["path"] - template = anatomy["render"]["path"] + path_to_save = anatomy_filled.render.path + template = anatomy.render.fullpath self.log.debug('ext[1:]: {}'.format(ext[1:])) representation = { diff --git a/pype/res/ftrack/sign_in_message.html b/res/ftrack/sign_in_message.html similarity index 100% rename from pype/res/ftrack/sign_in_message.html rename to res/ftrack/sign_in_message.html diff --git a/pype/res/icons/Thumbs.db b/res/icons/Thumbs.db similarity index 100% rename from pype/res/icons/Thumbs.db rename to res/icons/Thumbs.db diff --git a/pype/res/icons/inventory.png b/res/icons/inventory.png similarity index 100% rename from pype/res/icons/inventory.png rename to res/icons/inventory.png diff --git a/pype/res/icons/loader.png b/res/icons/loader.png similarity index 100% rename from pype/res/icons/loader.png rename to res/icons/loader.png diff --git a/pype/res/icons/lookmanager.png b/res/icons/lookmanager.png similarity index 100% rename from pype/res/icons/lookmanager.png rename to res/icons/lookmanager.png diff --git a/pype/res/icons/workfiles.png b/res/icons/workfiles.png similarity index 100% rename from pype/res/icons/workfiles.png rename to res/icons/workfiles.png diff --git a/pype/res/workspace.mel b/res/workspace.mel similarity index 100% rename from pype/res/workspace.mel rename to res/workspace.mel