Multi Knob Edit Tool v1.2
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Thorsten Löffler
This tool helps you to manipulate the values of the knobs of the same Class, for the selected nodes of the same Class.
Requirements:
11.0, 10.5, 10.0, 9.0 or later
Linux, Mac, Windows
11.0, 10.5, 10.0, 9.0 or later
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.

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')
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.
Please login in order to download these files.
Comments
Thank you so much!!
Only minor issue I found is when using on a Mac, the red 'MultiEdit' message disappears behind the main window.
From: self.setWindowFlags(QtCore.Qt.Window|QtCore.Qt.FramelessWindowHint)
To: self.setWindowFlags(QtCore.Qt.Window|QtCore.Qt.FramelessWindowHint|QtCore.Qt.WindowStaysOnTopHint)
It works for me on Mac and Linux but haven't tested on Win yet.
I'm in Nuke13.0v2 btw, haven't tried in higher versions.
RSS feed for comments to this post