As far as I know, there is no way to completely halt execution in Nuke (I've tried this in the context of Writers trying to abort execution of parent Writes). Even if your operator aborts and stops doing any processing, Nuke will still run through the full frame range that was requested, and if "continue on error" is true, it will continue trying to execute your op on subsequent frames. Because of these things, I think you may just have to test for aborted() at the start of execute() and return immediately. -Nathan
Date: Fri, 1 Nov 2013 11:51:46 +0000 From: [email protected] To: [email protected] Subject: [Nuke-dev] Stopping executable operator Hello, I'm quite new to NDK so I've got a simple question related to Executable Operators: from a C++ ndk plugin how can I stop the execution of the process after "ok" was pressed in the render panel ? (just like when the user clicks on cancel on the progress window) The reason is that I want to check some metadata at run time and if is not there the execution must abort. I am calling the renderpanel like the NormalizeExecute example : const char* renderScript = "currentNode = nuke.toNode(\"this\")\n" "nodeList = [currentNode]\n" "nukescripts.render_panel(nodeList, False)\n"; PyScript_knob(f, renderScript, "> Get GLOBAL min/MAX Value <"); Tried cancel() , abort() but without success cheers -- Fabio Turchet Research Engineer (EngD) at Prime Focus World London www.fabioturchet.com _______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
