Source code for nukescripts.execute

# Copyright (c) 2009 The Foundry Visionmongers Ltd.  All Rights Reserved.

import nuke_internal as nuke

from .renderdialog import showExecuteDialog


[docs]def execute_panel(_list, exceptOnError = True): # If we're called by Tcl, _list is actually a string with nodes names that # are space separated. if type(_list) is str: nodes = [nuke.toNode(x) for x in _list.split()] else: nodes = _list return showExecuteDialog(nodes, exceptOnError)