use new anatomy

This commit is contained in:
Milan Kolar 2019-04-09 18:28:27 +02:00
parent ba6d14c7e1
commit 28dbe25f16
3 changed files with 10 additions and 5 deletions

View file

@ -183,7 +183,7 @@ class AppAction(BaseHandler):
hierarchy = os.path.join(*parents)
data = {
"root": {"work": os.environ.get("PYPE_STUDIO_PROJECTS_PATH")},
"root": os.environ.get("PYPE_STUDIO_PROJECTS_PATH"),
"project": {"name": entity['project']['full_name'],
"code": entity['project']['name']},
"task": entity['name'],
@ -217,7 +217,7 @@ class AppAction(BaseHandler):
env = acre.append(dict(os.environ), env)
#
#
# tools_env = acre.get_tools(tools)
# env = acre.compute(dict(tools_env))
# env = acre.merge(env, dict(os.environ))

View file

@ -7,7 +7,9 @@ import avalon.nuke
import pype.api as pype
import nuke
log = pype.Logger.getLogger(__name__, "nuke")
from pypeapp import Logger
log = Logger().get_logger(__name__, "nuke")
self = sys.modules[__name__]
self._project = None

View file

@ -19,12 +19,15 @@ class CollectAssumedDestination(pyblish.api.InstancePlugin):
self.create_destination_template(instance)
template_data = instance.data["assumedTemplateData"]
# template = instance.data["template"]
template = instance.data["template"]
anatomy = instance.context.data['anatomy']
# self.log.info(anatomy.anatomy())
self.log.info(anatomy.anatomy)
# template = anatomy.publish.path
anatomy_filled = anatomy.format(template_data)
mock_template = anatomy_filled.publish.path
self.log.info(anatomy_filled)
mock_template = anatomy_filled["publish"]["path"]
# For now assume resources end up in a "resources" folder in the
# published folder