Pretty much:

subprocess.Popen(['X:\\apps\\Nuke6.1v5\\Nuke6.1.exe', '-t', 
r'X:\apps\Nuke6.1v5\nukeExternalControl\server.py'], stdin=subprocess.PIPE, 
stdout=subprocess.PIPE)


-Nathan



From: Manley 
Sent: Monday, February 27, 2012 10:53 AM
To: [email protected] 
Subject: [Nuke-python] Re: Nuke Module External Python Shell

You know what I miss read the README. It works, but with the nuke gui open. So 
in the instructions if I want to run the nukeexternalcontrol without the gui I 
need to do:

You can also use the server.py submodule as input to a terminal instance of
Nuke in order to launch a server without opening a full GUI copy of Nuke.
---------------------------
Nuke -t /nukeExternalControl/server.py


I'm a little confused with this.. am I supposed to do this?:

subprocess.Popen(['X:\\apps\\Nuke6.1v5\\Nuke6.1.exe', '-t', 
r'X:\apps\Nuke6.1v5\nukeExternalControl\server.py'], stdin=PIPE, stdout=PIPE, 
shell=True)


[quote="NathanR"]To me it sounds like you don’t have the server thread started 
properly. Can you explain the steps you’ve tried to get it working?

-Nathan



From: Manley ([email protected]) 
Sent: Monday, February 27, 2012 10:03 AM
To: [email protected] ([email protected]) 
Subject: [Nuke-python] Re: Nuke Module External Python Shell




Hey NathanR,

I'm having trouble getting the NukeExternalControl working.. maybe you could 
help me out? 
I found an old thread about this and someone else has had the same problem as 
me but no one said what the problem was or if it was resolved.. 


The Thread:
http://forums.thefoundry.co.uk/phpBB2/viewtopic.php?t=4203



This is my error:

['eur512_029_040_031(dpx) 1-1', 'eur512_029_040_031(jpg) 1-10']
Running Nuke
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
return self.func(*args)
File "C:\Users\manley\Desktop\man\testCapture.py", line 344, in runNuke
np.communicate(why())
File "C:\Users\manley\Desktop\man\testCapture.py", line 355, in why
conn = nukeExternalControl.client.NukeConnection()
File "C:\Python27\nukeExternalControl\client.py", line 45, in __init__
raise NukeConnectionError("Connection with Nuke failed")
NukeConnectionError: Connection with Nuke failed




      NathanR wrote:  
      No. The nuke module is basically a set of Python bindings exposed by the 
Nuke application at runtime.

      You can work around this by using an external control approach along the 
lines the one you’ve tried. Hugh has developed a nice socket-based solution you 
can find here: https://github.com/Nvizible/NukeExternalControl

      -Nathan  



--------------------------------------------------------------------------------
_______________________________________________
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