Multi Knob Edit Tool

This tool helps you to manipulate the values of the knobs of the same Class, for the selected nodes of the same Class.

Updated: 31 July 2018

Author: thorsten.loeffler

Compatible Nuke versions: 9.0 or later

Compatibility: Linux, Mac, Windows

This script is a proof of concept, to implement the very handy multi ppg feature from Softimage into Nuke.
 
Run the wbMultiKnobEdit.multiEditExec() function. Then the multi knob edit mode is activated (see red info bar on top of the Nuke UI),
this means all nodes of the same class and when they're selected will get the same value,
when one of the values is changed.
 
 
E.g: You select a couple of read nodes while the multi knob mode is activated, and change the frame value hold from hold to loop,
so all selected nodes will get the same value.
 
You deactive this behavior, when you execute the wbMultiKnobEdit.multiEditExec() function a second time.
 
multiknob_edit_tool.jpg
 
INSTALL
 
Copy wbMultiKnobEdit.py to a startup directory. (e.g. for window C:\Users\\.nuke )
add these lines to your menu.py (e.g. for window C:\Users\\.nuke\menu.py ):
 
import wbMultiKnobEdit
menu = nuke.menu('Nuke')
edit_menu = menu.findItem('Edit')
edit_menu.addSeparator( len(edit_menu.items()) )
edit_menu.addCommand('multi knob edit tool', 'wbMultiKnobEdit.multiEditExec()', 'F12')
 
In the example above the script is added to the Edit menu and assigned to F12 as a shortcut.
 

Copyright (c) 2017, Thorsten Loeffler
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.

The views and conclusions contained in the software and documentation are those
of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.

Sign in or register to download or rate.