nukePyDummy v1.0

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Sebastian Elsner
A python script to generate a dummy module for use with external editors.
5.1, 5.2, 6.0, 6.1 or later
Linux, Mac, Windows
08 Jun 2010

This script generates a dummy module, which defines all python classes, methods and functions, nuke provides (and are accessible via the inspect module). This module does not have any direct practical use because all definitions are virtual. However, they can the be used for auto completion in external editors like Eclipse, JEdit or Notepad++. On how to set this up see the article "Using Nuke with Eclipse".

Note: It is likely that some classes (especially nuke.nodes.x) are not defined in the generated this is because they are not seen by the inspect module. Perhaps this can be changed by the Foundry.


Tested on Windows. Linux and Mac should work though.

Please login in order to download these files.


+1 # Alvaro Castaneda 2012-01-11 00:13
Man this tool is super amazing

0 # Patrick Wolf 2012-01-12 17:33
I'm getting issues when running it with Nuke 6.2 and 6.3:

it creates:
def setName(self,'n ame') instead of def setName(self,na me)

once that is fixed I get many Knob errors that base classes are missing.
class AColor_Knob(Color_Knob):
NameError: name 'Color_Knob' is not defined

thanks a lot
0 # Alvaro Castaneda 2012-01-12 22:09
hey Patrick I'm using it on 6.3v4 on windows 7 and linux with no problems at all,
what OS are you using?

0 # Patrick Wolf 2012-01-13 17:30
Hi Alvaro,
6.3v2 on Win 7 x64
0 # Alvaro Castaneda 2012-01-14 11:06
that should work
I'm using kinda the same just 6.3v4
can you try updating nuke, maybe there were some
python bugs squashed between versions

0 # Manley Gage 2012-02-22 17:49
I'm running Nuke 6.1v5 and I'm also getting errors:

Traceback (most recent call last):
File "", line 1, in
import nuke
File "C:Python27lib", line 1813
def __getattribute_ _(self,'name'):
SyntaxError: invalid syntax

Any fixes for this?
0 # Manley Gage 2012-02-22 17:50
Traceback (most recent call last):
File "", line 1, in
import nuke
File "C:Python27lib", line 1813
def __getattribute_ _(self,'name'):
SyntaxError: invalid syntax
0 # Manley Gage 2012-02-22 17:51
weird... I can't past the error example in here without it going wonky... o.0

the error is coming from the (self, 'name'):
0 # Marc Mantei 2012-03-09 02:08
the code works on my win7 6.3v5.

but id could not get autocompletion in notepad++ to work.
do you have any hints how to achieve this ?
(must i have python installed ?)
thx for advance, marc
0 # Marco Leone 2012-03-25 23:16
hey Sebastian,
I'm having this problem :

Traceback (most recent call last):
File "", line 148, in
TypeError: 'str' object is not callable

I'm using nuke 6.3v1 on a mac, what should I do???
0 # Chris S 2012-04-05 00:44
no error on fedora 16 nuke 6.3.v2

0 # Andrew Paxson 2012-08-25 20:36
Thanks man! Works like a charm!
0 # Ahad Mohebbi 2012-11-27 22:49
thanks for your grate tools.
Thanks again
+2 # Christoph Ketzler 2014-05-09 06:40
I got an error on Nuke 8.

It works if you replace line 148 with this:

for name in nuke.__dict__.keys():

because the dir() function doesn't work in nuke

You have no rights to post comments

We have 2952 guests and 110 members online