Nuke_Knob_Changer v1.0


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Josh Robertson
Website: www.Dragoby.com
A small python panel to assist with changing the values of knobs on multiple nodes inside of nuke at the same time without the need to type up python
Requirements:
8.0, 7.1, 7.0, 6.3, 6.2, 6.1, 6.0 or later
Linux, Mac, Windows
28 Oct 2014
177

A small python panel to assist with changing the values of knobs on multiple nodes inside of nuke at the same time without the need to type up python

NukeKnobChanger


I created this script to help a few friends of mine who arent python savy plus a few others who a bit lazy like me who dont want to type python everytime we want to change the value of 30 different nodes at the same time.  As this is the first version of the script there is still a few bugs I need to try and work out

for mostly all knobs the script works as is but if it is a dynamic slider that can also have seperate text fields instead of a slider you need to be picky about your syntax when typing in the values some examples of the sliders are

on the blur node
Nuke2DigitSlider

or on the Constant or any colour knob
Nuke4DigitSlider

if you want to add the value as a slider you need to type 1.0, 5.0 2.34 etc

if you have broken the slider into the respective text boxes
nuke4DigitTextBox

you will need to type in the value as 1234 where the 1 is the Red 2 is the Green 3 is the Blue and 4 is the Alpha.  The same goes for the blur slider where it has only 2 boxes so 12 would do a value of 1 and a value of 2.

the problem with this is you are limited to a max value of 9 for each box with this script.  I am looking into trying to fix this so it works regardless of the values.

 To Install The Script Copy it to your .nuke Directory
 Windows C:/users//.nuke
 Linux /home//.nuke

 Add the text below to your menu.py in your .nuke directory
 If menu.py doesn't exist create one

#===============================#
import Nuke_Knob_Changer
  
def addKnobChanger():
    KnobChanger = Nuke_Knob_Changer.KnobChanger()
    return KnobChanger.addToPane()
 
##THIS LINE WILL ADD THE NEW ENTRY TO THE PANE MENU
nuke.menu('Pane').addCommand('KnobChanger', addKnobChanger)
 
##THIS LINE WILL REGISTER THE PANEL SO IT CAN BE RESTORED WITH LAYOUTS
nukescripts.registerPanel('com.0hufx.KnobChanger', addKnobChanger)

#===============================#

If you have any questions about the script drop a comment or shoot me an email and ill do my best to answer.  If you have any feature requests of bugs that you encounter again drop a comment or shoot me an email and ill do my best to adress tha

Cheers
Josh

Please login in order to download these files.

Comments   

 
# Rich Bobo 2014-10-28 20:14
Hey Josh - Coincidentally, I have also recently worked on this same problem, for pretty much the same reasons as you have stated. My solution is a bit different, but I'd be glad to share my approach if you're interested. I tried seeing if I could contact you via the http://www.draogby.com/ web site, but it's not working... You can email me at richbobo at mac dot com.
Rich
 
 
# mani di 2014-10-29 19:49
Thanks! Works perfect. But I found one issue. When you trying to change knob value with x and y value (for example blur size or transform translate), script works incorrect.
 
 
# Josh Robertson 2014-10-29 23:52
Hey Mani thanks for the comment, I do know about that bug but am working on fixing that. It seems that any knob with multiple boxes like the x,y it sees the value as each digit so 12 would be x1 y2 if that makes sense. Like I said I am trying to find a work around to make this work a bit better and will update the script as soon as I fix it

Thanks
Josh
 

You have no rights to post comments

We have 3213 guests and 64 members online