move icons
|
|
@ -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...")
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 408 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 205 B After Width: | Height: | Size: 205 B |