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 From: Manley Sent: Thursday, February 23, 2012 6:21 PM To: [email protected] Subject: [Nuke-python] Nuke Module External Python Shell Hey all, This may seem like a dum question.. but where is the nuke module located? I'm creating a script that grabs image sequences specified from the use, then after a bunch of other user input the sequences get submitted to Nuke and I'm writing a scripting to build and render out of it. I can run a subprocess.Popen(['X:\\apps\\Nuke6.1v5\\Nuke6.1.exe', '-t']) and run nuke. commands from the python shell externally and I can see it creating the nodes in the python shell BUT if I try to write the nuke. commands within the Python script I get an error that obviously says there is no Nuke module. I also found a dummy.py module from NukePedia that creates a nuke.py module, but the module does not run on the system we have at the studio.. I get errors from trying to import that nuke.py module that say some things are not defined or syntaxerrors :def __getattribute__(self,'name'): .... anyways.. long story short is there another way of getting nuke to run within Python externally? version Nuke 6.1v5 windows 7 64bit python 2.7 Thanks in advance! -------------------------------------------------------------------------------- _______________________________________________ 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
