mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
14 lines
313 B
Python
14 lines
313 B
Python
import pyblish.api
|
|
|
|
|
|
class CollectHost(pyblish.api.ContextPlugin):
|
|
"""Inject the host into context"""
|
|
|
|
order = pyblish.api.CollectorOrder
|
|
label = "Collect Host"
|
|
hosts = ["nuke"]
|
|
|
|
def process(self, context):
|
|
import pyblish.api
|
|
|
|
context.data["host"] = pyblish.api.current_host()
|