Ah right, good call Ben. I've gotten too used to having PySide/PyQt available in every Python instance that's running... In this case you would need to spawn your "input getter" dialog in a separate Python subprocess and fetch from that (though you'd also need a standalone install of PySide to go along with it).

-Nathan

-----Original Message----- From: Ben Dickson
Sent: Monday, February 13, 2012 4:48 PM
To: Nuke Python discussion
Subject: Re: [Nuke-python] Opening an import file dialog while in terminal mode

$ nuke -t
_>> import PySide.QtCore
_>> import PySide.QtGui
_>> PySide.QtGui.QWidget().show()
QWidget: Cannot create a QWidget when no GUI is being used
Abort
$

On 14/02/12 05:27, Nathan Rusch wrote:
Not using native Nuke functions (nuke.getFilename, etc.). You would
probably need to raise a simple PySide GUI.

-Nathan


*From:* coreydrake <mailto:[email protected]>
*Sent:* Monday, February 13, 2012 10:49 AM
*To:* [email protected]
<mailto:[email protected]>
*Subject:* [Nuke-python] Opening an import file dialog while in terminal
mode

Is there a way to have a python script open a file browser to allow the
user to import a file while in terminal mode?

------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python


_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

--
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to