adding context related functions to pype/template.py and other small changes, fixing typo on get_hierarchy(), rename fill_avalon_workdir to set_*, rename make_wordir_template to get_*,

This commit is contained in:
Jakub Jezek 2019-01-10 15:50:18 +01:00
parent eaa22dc082
commit 61bbfebb1e
20 changed files with 475 additions and 178 deletions

View file

@ -0,0 +1,15 @@
import pyblish.api
from avalon import api as avalon
from avalon import io
class CollectContextDataEditorial(pyblish.api.ContextPlugin):
"""Collecting data from temp json sent from premiera context"""
label = "Collect Editorial Context"
order = pyblish.api.CollectorOrder + 0.1
def process(self, context):
data_path = context.data['json_context_data_path']
self.log.info("Context is: {}".format(data_path))
self.log.warning("avalon.session is: {}".format(avalon.session))