Revert "move icons"

This reverts commit 7e5e20dbcc.
This commit is contained in:
Milan Kolar 2019-04-09 18:27:44 +02:00
parent 7e5e20dbcc
commit d98d92e410
10 changed files with 10 additions and 14 deletions

View file

@ -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...")

View file

@ -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",

View file

@ -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 = {

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 408 B

After

Width:  |  Height:  |  Size: 408 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 205 B

Before After
Before After