I'm not entirely sure I understand what you're trying to do, but do you
know about the execfile() function?

>From within some nuke python code, you could run
"execfile('external_script.py')" and nuke will execute it as if you entered
it in the script editor...


On 24 February 2012 02:21, Manley <[email protected]>wrote:

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


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