He was running Nuke in terminal mode. You won’t be able to do anything to stdin when Nuke is in GUI mode.
-Nathan From: render3 Sent: Thursday, March 15, 2012 8:53 AM To: [email protected] Subject: [Nuke-python] Re: Nuke Module External Python Shell Hey everyone. I didn't want to open a new thread because my question is very related... Manley mentioned in his very first post that he managed to send commands to the Nuke subprocess somehow, so that they would be executed by the Nuke python interpreter, without Hugh's module. I'm trying to do the same, but I'm having some trouble. When I run something like nk= subprocess.Popen("C:\...\Nuke.exe",stdin=PIPE) nk.communicate() #or with any value for input the python shell just freezes, waiting for a response from nuke which it isn't getting. I'm guessing I've missed some very trivial, but vital step. Basically what I need to do is to open up a GUI version of Nuke from an external python script (inside Maya), and then be able to send a python command to Nuke from that external script, but without having to install another module. Is there any way I can do that? -------------------------------------------------------------------------------- _______________________________________________ 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
