mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
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:
parent
eaa22dc082
commit
61bbfebb1e
20 changed files with 475 additions and 178 deletions
15
pype/plugins/aport/publish/collect_context.py
Normal file
15
pype/plugins/aport/publish/collect_context.py
Normal 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))
|
||||
Loading…
Add table
Add a link
Reference in a new issue