mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
FusionRenderNode action for launcher
This commit is contained in:
parent
2fdd3c8c64
commit
cc7124a1ba
1 changed files with 23 additions and 0 deletions
23
colorbleed/fusion/rendernode.py
Normal file
23
colorbleed/fusion/rendernode.py
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
import os
|
||||||
|
from avalon import api, lib
|
||||||
|
|
||||||
|
# TODO: get fusion render node exe from somewhere else
|
||||||
|
FRN = "C:/Program Files/Blackmagic Design/Fusion Render Node 9/FusionRenderNode.exe"
|
||||||
|
|
||||||
|
|
||||||
|
class FusionRenderNode(api.Action):
|
||||||
|
|
||||||
|
name = "fusionrendernode"
|
||||||
|
label = "F9 Render Node"
|
||||||
|
icon = "object-group"
|
||||||
|
order = 997
|
||||||
|
|
||||||
|
def is_compatible(self, session):
|
||||||
|
"""Return whether the action is compatible with the session"""
|
||||||
|
return True
|
||||||
|
|
||||||
|
def process(self, session, **kwargs):
|
||||||
|
"""Implement the behavior for when the action is triggered"""
|
||||||
|
return lib.launch(executable=FRN,
|
||||||
|
args=[],
|
||||||
|
environment=os.environ.update(session))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue