You are correct, thanks. I had a script that imported QtGui in the init.py. Works now!
Cheers! ------------------------------- Simon Björk Compositor/TD +46 (0)70-2859503 www.bjorkvisuals.com 2014-06-24 14:22 GMT+02:00 Diogo Girondi <diogogiro...@gmail.com>: > Hi Simon, > > It seems that you have a custom script trying to create a PySide/PyQT > panel which is probably being loaded on the wrong place, like your custom > init.py instead of the menu.py which is only loaded on the interactive > (GUI) mode. > > Cheers, > Diogo > > On 24/06/2014, at 09:08, Simon Björk <si...@bjorkvisuals.com> wrote: > > Hi all, > > I'm trying to render a script from the command-line, but I get an error: > > *QWidget: Cannot create a QWidget when no GUI is being used* > > I've tried both in the command-line with: > > Nuke8.0.exe - iX - Write1 D:\tmp.nk 1-10 > > And from an external IDE using Nuke as a Python module: > > import os > os.environ["NUKE_INTERACTIVE"] = "1" > > import nuke > c = nuke.createNode("CheckerBoard2") > w = nuke.createNode("Write") > w["file"].setValue("C:/Users/Simon/Desktop/tmp.exr") > w.setInput(0, c) > nuke.execute(w, 1,2) > > Same error with both. I'm probably missing something obvious here? > > Cheers! > > > ------------------------------- > Simon Björk > Compositor/TD > > +46 (0)70-2859503 > www.bjorkvisuals.com > > _______________________________________________ > 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 > > > _______________________________________________ > 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 > >
_______________________________________________ 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