added current file check

This commit is contained in:
wikoreman 2018-07-18 11:04:53 +02:00
parent b825b3a775
commit 4653cabb8a
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import hou
import pyblish.api
class CollectMayaCurrentFile(pyblish.api.ContextPlugin):
"""Inject the current working file into context"""
order = pyblish.api.CollectorOrder - 0.5
label = "Houdini Current File"
hosts = ['houdini']
def process(self, context):
"""Inject the current working file"""
context.data['currentFile'] = hou.hipFile.path()