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
12 Aug 2017
228
  • 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. 

 

mergeBox

 

 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   

 
0 # Holger Hummel 2017-08-11 11:47
Hi Falk,

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())
 
 
0 # Holger Hummel 2017-08-11 11:48
ooops... something got lost in my previous comment.
new try:

def start():
global mergebox
mergebox = MergeBox()
if len(nuke.select edNodes())
 
 
0 # Holger Hummel 2017-08-11 11:51
hmmm.... weird...
sent you an email instead.
 
 
0 # Falk Hofmann 2017-08-11 13:12
thanks Holger!
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.
 
 
0 # Holger Hummel 2017-08-11 13:17
hey Falk,

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.
 
 
0 # Falk Hofmann 2017-08-12 10:56
updated with your snippet implemented as option
 
 
0 # Alex Green 2019-02-14 18:04
How it work? Where hotkey?
 
 
0 # Mohamed Abuzeid 2020-08-19 17:18
same problem here , it's not working !!!
 

You have no rights to post comments

We have 3237 guests and 63 members online