Whoops.. my if statement was a bit off there. It works now. Sorry! On Fri, Sep 26, 2014 at 12:14 PM, Fredrik Averpil <fredrik.aver...@gmail.com > wrote:
> Hi, > > It seems I cannot put an if statement inside a Write node’s > afterFrameRender knob. For example, put this in the knob and try rendering: > print > 'hello' if 1 == 1 else print 'goodbye' > > When I do that I get this: > > Traceback (most recent call last): > File "<string>", line 1, in <module> > File > "//192.168.0.225/Pipeline/bin/nuke/builds/Nuke8.0v6-win-x86/plugins\nukescripts\renderpanel.py > > <http://192.168.0.225/Pipeline/bin/nuke/builds/Nuke8.0v6-win-x86/plugins%5Cnukescripts%5Crenderpanel.py>", > line 8, in render_panel > return nukescripts.showRenderDialog(_list, exceptOnError) > File > "//192.168.0.225/Pipeline/bin/nuke/builds/Nuke8.0v6-win-x86/plugins\nukescripts\renderdialog.py > > <http://192.168.0.225/Pipeline/bin/nuke/builds/Nuke8.0v6-win-x86/plugins%5Cnukescripts%5Crenderdialog.py>", > line 796, in showRenderDialog > d.run() > File > "//192.168.0.225/Pipeline/bin/nuke/builds/Nuke8.0v6-win-x86/plugins\nukescripts\renderdialog.py > > <http://192.168.0.225/Pipeline/bin/nuke/builds/Nuke8.0v6-win-x86/plugins%5Cnukescripts%5Crenderdialog.py>", > line 241, in run > nuke.executeMultiple(self._nodeSelection, frame_ranges, views, > continueOnError = self._continueOnError.value()) > RuntimeError: invalid syntax (<string>, line 1) > > Does anyone have a workaround? > I would really need to do an if statement there… > > Regards, > Fredrik > >
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python