move icons

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

View file

@ -1,7 +1,9 @@
import pype.api as pype
# import pype.api as pype
import pyblish.api
from pypeapp import Anatomy
import os
class CollectTemplates(pyblish.api.ContextPlugin):
@ -11,6 +13,8 @@ class CollectTemplates(pyblish.api.ContextPlugin):
label = "Collect Templates"
def process(self, context):
pype.load_data_from_templates()
context.data['anatomy'] = pype.Anatomy
# pype.load_data_from_templates()
anatomy = Anatomy(project_name=os.environ.get("AVALON_PROJECT"))
context.data['anatomy'] = 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.publish.path
template = anatomy.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.publish.path
template = anatomy.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.fullpath
path_to_save = anatomy_filled["render"]["path"]
template = anatomy["render"]["path"]
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