mergeBox v1.1
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Falk Hofmann
menu for creating merges and setting operation in one go
Requirements:
11.0, 10.5, 10.0, 9.0, 8.0, 7.1, 7.0 or later
Linux, Mac, Windows
11.0, 10.5, 10.0, 9.0, 8.0, 7.1, 7.0 or later
Linux, Mac, Windows
12 Aug 2017
243
- updated to implement Holger's Idea to optionally keep regular Merge behaviour when none or one node selected.
the mergBox was a side product after writing the channel Hotbox . since a colleauge asked for it i modiefied the code accordingly.
it allows you to create merge nodes as usual and set the operation to your selection.
inside the script is an option where you can choose if you want to pop up under the mouse or centered on the primary or secondary screen.
add this to your menu:
import mergeBox
nuke.menu('Nodes').findItem('Merge').addCommand('Merge', 'mergeBox.start()', 'm')
Please login in order to download these files.
Comments
very nice! ;)
Been thinking about this for ages - thanks a lot!
I made a small modification since i wanted to have the standard behaviour on the 'm' key if no or only one single node is selected instead of having to do 'shift-m' (which i like to keep for branching out Nodes).
Here's the modified code for the start() function in case you're interested:
def start():
global mergebox
mergebox = MergeBox()
if len(nuke.select edNodes())
new try:
def start():
global mergebox
mergebox = MergeBox()
if len(nuke.select edNodes())
sent you an email instead.
certainly not a bad idea if you want your default behavior to be a regular merge.
let me update the submission to implement your code snippet. so people can choose either way.
i actually just changed the nuke.Nodes().Me rge() to
nuke.createNode('Merge') since the former always put the Merge Node somewhere around 200 lightyears away from the mouse pointer ;) Maybe you want to do the same before submitting an update.
RSS feed for comments to this post