mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
added current file check
This commit is contained in:
parent
b825b3a775
commit
4653cabb8a
2 changed files with 15 additions and 0 deletions
15
colorbleed/plugins/houdini/publish/collect_current_file.py
Normal file
15
colorbleed/plugins/houdini/publish/collect_current_file.py
Normal 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()
|
||||
0
colorbleed/plugins/houdini/publish/extract_alembic.py
Normal file
0
colorbleed/plugins/houdini/publish/extract_alembic.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue