KnobScripter v2.0

This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Adrian Pueyo
Complete python script editor for Nuke.
11.0, 10.5, 10.0, 9.0 or later
Linux, Mac
22 May 2019

                KnobScripter v2.0                


KnobScripter 2 is a completely redesigned python script editor for nuke, where you can create, modify or run python (.py) files, as well as program directly on callback (knobChanged, onCreate, ...) or python knobs (Python script buttons or Python Custom Knobs).

It works as a floating panel to be called on a selected node, and/or as a dockable pane.

Tutorial/Overview video:

User Guide (.pdf):

KnobScripter v2.0

Current bugs, feature requests and planned updates

  • Not Windows compatible at the moment.
  • Needs compatibility with extended ascii characters.
  • Prefs: Option to display the knob labels too, in the knob dropdown.
  • Prefs: Font selector, synced to Nuke's Script Editor font Preferences by default.

Latest pre-release fixes will be here:

Bugs and suggestions always appreciated. Happy scripting!

Copyright (c) 2016-2019, Adrian Pueyo All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Credit goes to Wouter Gilsing for the script editor widget part, which he made for his tool W_Hotbox. It can be downloaded here:
Please login in order to download these files.


+3 # Simon Jokuschies 2017-02-01 06:08
Hi Adrian,
This is really useful, thanks for sharing this tool :)
+1 # Adrian Pueyo 2017-02-01 17:25
Hi Simon, glad you like it :)
+1 # Parimal Desai 2017-02-01 09:00
Much needed, Thanks Adrian!
# Adrian Pueyo 2017-02-01 17:31
You're welcome! :-)
# Gaetan Baldy 2017-02-03 10:27
Very good work ! this is awesome !
# Adrian Pueyo 2017-03-05 20:19
Thank you!
# Vitaly Musatov 2017-02-10 10:10
Thank you Adrian for sharing! Awesome tool!
# Adrian Pueyo 2017-03-05 20:20
You're welcome! :)
# Alexey Kuchinski 2017-05-26 12:58
Thank you Adrian, very useful!
# Javier Saura Saura 2018-02-05 09:44
Hi! It is not working in to Nuke 11 =/

Does anyone know something?

Many thanks!
# Adrian Pueyo 2018-03-10 00:20
Hey Javier,

It's now updated to PySide2 and should work in both Nuke 11 and previous versions :-) Let me know if you experience any problems!

# Javier Saura Saura 2018-03-10 11:01
Hi Adrian! it does Work! I will comment you if it shows something problem.

Thanks a lot!
# Matthias Eckhardt 2018-03-10 13:56
i love this tool!! thx
# Jeang Jenq Loh 2018-04-10 16:29
I just found this and this is awesome!!! Thanks Adrian!
# Jed Smith 2018-05-13 15:44
This is awesome! Super useful tool which I will be immediately adding to my .nuke config.

I have one feature request: I often add knobChanged code to nodes within a group, so that I can avoid having the knobChanged fire whenever the selection state or position of a gizmo changes. This improves performance especially in big nuke scripts.

Right now in the tool it is possible to select a node inside a group and press alt+z to load the editor, but it's not possible to press the "Change" button and switch to a node insideo a group. Would this be possible to add?
# Adrian Pueyo 2018-09-07 11:42
Hey Jed, thanks for your feedback. This is now fixed in v1.3.
Let me know if you encounter any other weird behaviours! :-)
+1 # Alexey Kuchinski 2019-05-20 06:11
Best Nuke 11 feature by far.
Foundry should pay maintenance fee to you Adrian!!!
# Prasannakumar T Bhat 2019-05-21 05:24
Thanks for the Amazing tool. I stopped using other script editors after the update :D

one of my scripts giving this error when i click save and it won't able to save. (checked file permission)

Traceback (most recent call last):
File "/usr/people/prasannab/.nuke/KnobScripter/", line 1561, in saveClicked
self.saveScriptContents(temp = False)
File "/usr/people/prasannab/.nuke/KnobScripter/", line 953, in saveScriptContents
UnicodeEncodeError: 'ascii' codec can't encode character u'\u03b3' in position 8796: ordinal not in range(128)
# Adrian Pueyo 2019-05-21 06:46
Thanks Prasannakumar! :-) will try to fix that for the next update, seems to be a problem with unicode characters I didn't account for.
# Carlos Trijueque 2019-05-21 05:57
Love this new version Adrian. I haven't had the time to test it properly yet but on my first run I've encountered an issue. The Scripter loads fine on Nuke 10.5 but when I tried to use it in Nuke 11.2 it crashed it and throws this error:

QWidget: Must construct a QApplication before a QPaintDevice
I'll run some proper test when I have the time and report back, but I wanted to leave a comment just in case somebody else is having the same issue. Let me know if I can do anything else to help.



P.S: As you already know we are a Windows shop.
# Adrian Pueyo 2019-05-21 06:45
Hey Charlie, thanks for your message.

Indeed, it's only been tested on Linux and Mac. I completely forgot testing it on Windows!

Will make it the highest priority fix and update this thread :-)

# Robin Dutta 2019-05-21 22:45
Thanks, I've been waiting for a proper script editor to make it's way into nuke.

We did encounter an error loading the module in our studio though. Forcing PySide2 for nuke versions 11 and up resolved it though. We use the Qt shim mostly, but this worked:

if nuke.NUKE_VERSI ON_MAJOR < 11:
from PySide import QtCore, QtGui, QtGui as QtWidgets
from PySide.QtCore import Qt
from PySide2 import QtWidgets, QtGui, QtCore
from PySide2.QtCore import Qt
except ImportError:
from Qt import QtCore, QtGui, QtWidgets

Also, for those wondering how to change the font - find/replace "Courier" with "Monospace" (or your choice of font) in knob_scripter.p y. This really aught to get it's value from ScriptEditorFon t from preferences, but this workaround is sufficient.
# Adrian Pueyo 2019-05-22 06:19
Hey Robin, thanks for your input, it's great. I'll switch to your import method in case it makes a difference for anyone else...
Quoting Robin Dutta:
This really aught to get it's value from ScriptEditorFont from preferences

I had this planned for a long time but never did it. Will add it to the next version too, and update this thread. Thank you!
+1 # Pau Rocher 2019-05-23 15:25
Ole que bueno!!
Thank you bro!!
+1 # Andrea Geremia 2019-05-24 09:28
The Foundry should integrate this KnobScripter in the next Nuke version!
Amazing Adrian!!

You have no rights to post comments

We have 8586 guests and 82 members online