mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use new anatomy
This commit is contained in:
parent
ba6d14c7e1
commit
28dbe25f16
3 changed files with 10 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue