FusionRenderNode action for launcher

This commit is contained in:
wijnand 2018-03-27 16:24:33 +02:00
parent 2fdd3c8c64
commit cc7124a1ba

View 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))