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 nuke.py module for use with external editors.
Requirements:
5.1, 5.2, 6.0, 6.1 or later
Linux, Mac, Windows
5.1, 5.2, 6.0, 6.1 or later
Linux, Mac, Windows
08 Jun 2010
1340
This script generates a dummy nuke.py module, which defines all python classes, methods and functions, nuke provides (and are accessible via the inspect module). This nuke.py 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 nuke.py 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.
Comments
Thanks
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.
e.g.
class AColor_Knob(Color_Knob):
NameError: name 'Color_Knob' is not defined
thanks a lot
patrick
what OS are you using?
Cheers
6.3v2 on Win 7 x64
thanks
patrick
I'm using kinda the same just 6.3v4
can you try updating nuke, maybe there were some
python bugs squashed between versions
cheers
eg:
Traceback (most recent call last):
File "", line 1, in
import nuke
File "C:Python27lib
uke.py", line 1813
def __getattribute_ _(self,'name'):
^
SyntaxError: invalid syntax
Any fixes for this?
File "", line 1, in
import nuke
File "C:Python27lib
uke.py", line 1813
def __getattribute_ _(self,'name'):
^
SyntaxError: invalid syntax
>>>
the error is coming from the (self, 'name'):
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
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???
thanks
Thanks again
It works if you replace line 148 with this:
for name in nuke.__dict__.keys():
because the dir() function doesn't work in nuke
RSS feed for comments to this post