effectropy

vfx and that other thing

Nuke Script – Multy Knob Changer

Leave a comment

Oftentimes the sheer quantity of nodes in a Nuke script explodes more violently than New York City in your favourite Hollywood blockbuster. So it’s never a bad idea to have the right script at hand, to help you deal with ground zero (or hopefully a lovely organized script).

The Multy Knob Changer is a simple script, that lets you change several same knobs in a selection of nodes.

how to use:

Let’s say you want to set the ‘size’ knob of all blur nodes in the script to ’42’.

  • copy paste the script code into your nuke script editor and run it
  • enter the node class name, knob name and select the knob type (e.g. text field, drop down menu, check box)
  • check ‘only selected nodes’, if you don’t want to set the knob values for all nodes in the script
  • hit the start button

MKC_UI_01

  • enter your new value, press ok. Et voilà, all your blur nodes were updated.

MKC_UI_02

Get the script here.

If you want to add the script to your nuke menu and toolbar, place the multyKnobChanger.py in your .nuke folder and add the following lines to your menu.py. Don’t forget to comment out the last line (‘mainFunction()’) in the script.
For more details on custom menues check out this Nukepedia article.

import multyKnobChanger
effectropyTools = nuke.menu('Nodes').addMenu('effectropyTools')
effectropyTools.addCommand('multyKnobChanger', 'multyKnobChanger.mainFunction()')

menuBar = nuke.menu('Nuke')
menuBar.addCommand('Edit/multyKnobChanger', 'multyKnobChanger.mainFunction()')
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s