I inherit from Executable now, pure virtual methods of Executable class are
implemented, and I added a button to mi node:
void MyNode::knobs( Knob_Callback f )
{
const char* renderScript = "currentNode = nuke.toNode(\"this\")\n"
"nodeList = [currentNode]\n"
"nukescripts.render_panel(nodeList, False)\n";
PyScript_knob(f, renderScript, "execute me");
.....
}
when I click the new button, a Render dialog appears, I set the frame range,
and OK, then I get the following error:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "C:/Program Files/Nuke7.0v4/plugins\nukescripts\renderpanel.py", line 8,
in render_panel
return nukescripts.showRenderDialog(_list, exceptOnError)
File "C:/Program Files/Nuke7.0v4/plugins\nukescripts\renderdialog.py", line
702, in showRenderDialog
d.run()
File "C:/Program Files/Nuke7.0v4/plugins\nukescripts\renderdialog.py", line
236, in run
nuke.executeMultiple(self._nodeSelection, frame_ranges, views,
continueOnError = self._continueOnError.value())
RuntimeError: MyNode1 cannot be executed
What that error means?
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev