[Fuse] Multi-Merge

User avatar
Midgardsormr
Fusionista
Posts: 706
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 64 times
Contact:

[Fuse] Multi-Merge

#1

Post by Midgardsormr » Mon Sep 18, 2017 5:27 pm

MultiMerge can perform a Merge with up to 64 Inputs. Every time a new Input is connected, a new one is created. The composite is created iteratively, so each additional image is Merged with the results of the previous Merge operations. At present, every layer gets the same Apply Mode and Operator, and the Transform controls are not exposed.
Multi-Merge.jpg
Known Issues:

The CloneInput method causes some versions of Fusion (all version 8 releases) to crash, so the Blend control does not appear on the Controls tab. For versions of Fusion where this is not the case, removing the comment flag on line 136 should add the cloned Blend input to the Controls tab.

The numerous Inputs are visually confusing, especially with the Effect Mask there also. A visible text label in the Flow, like Nuke uses, would be nice, but I'm fairly certain that's not possible at this time.

Held Out mode throws an error. Looks like it might be a bug in the API.

For the Future:

Add an Apply Mode/Operator control and a Blend control for each layer.
Implement Transform controls—I'm not sure exactly how these should work. On-screen widgets only apply to the highest-numbered input, perhaps?
Implement Depth Merge (low priority)

edit: Credit where it's due. This fuse is based in large part on code by Stefan Ihringer (Switch Fuse) and Isaac Gruenard (FuseMerge).
You do not have the required permissions to view the files attached to this post.
Last edited by Midgardsormr on Tue Sep 19, 2017 5:40 pm, edited 3 times in total.

User avatar
AndrewHazelden
Fusionator
Posts: 1001
Joined: Fri Apr 03, 2015 3:20 pm
Location: West Dover, Nova Scotia, Canada
Been thanked: 92 times
Contact:

Re: [Fuse] Multi-Merge

#2

Post by AndrewHazelden » Mon Sep 18, 2017 5:53 pm

What do you think of using a Wireless input linking approach (and drag and drop) to make it easier to know visually what order each input is connected and named in the stack?

User avatar
PeterLoveday
Fusioneer
Posts: 126
Joined: Sun Sep 14, 2014 6:09 pm
Been thanked: 10 times

Re: [Fuse] Multi-Merge

#3

Post by PeterLoveday » Mon Sep 18, 2017 6:02 pm

You can do both, if you want. Have the connections on the flow, and dragdrop labels in the tool. See the external matte saver fuse with 9.0.1 for an example.

User avatar
Midgardsormr
Fusionista
Posts: 706
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 64 times
Contact:

Re: [Fuse] Multi-Merge

#4

Post by Midgardsormr » Mon Sep 18, 2017 6:08 pm

Good idea!

User avatar
JUNE
Fusioneer
Posts: 159
Joined: Wed Aug 06, 2014 5:45 am
Been thanked: 13 times
Contact:

Re: [Fuse] Multi-Merge

#5

Post by JUNE » Mon Sep 18, 2017 6:35 pm

:) viewtopic.php?f=6&t=1517

User avatar
Midgardsormr
Fusionista
Posts: 706
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 64 times
Contact:

Re: [Fuse] Multi-Merge

#6

Post by Midgardsormr » Tue Sep 19, 2017 1:36 pm

Nice, June! Maybe add a Blend control to each layer. Otherwise, you're not getting any benefit from having passes—you might as well just use the Beauty buffer.

Adding the Wireless inputs is easy enough. Is it possible to force the new Inputs to the top of the stack? Intuitively, you'd expect the item at the top to also be the top layer.
Untitled.png
You do not have the required permissions to view the files attached to this post.

User avatar
Midgardsormr
Fusionista
Posts: 706
Joined: Wed Nov 26, 2014 8:04 pm
Location: Los Angeles, CA, USA
Been thanked: 64 times
Contact:

Re: [Fuse] Multi-Merge

#7

Post by Midgardsormr » Tue Sep 19, 2017 5:39 pm

Multi-Merge.jpg
Updated to version 1.1:

Added Image fields to the Control panel for better clarity. Added independent Blend controls per layer. Removed the troublesome CloneInput line since the new Blend controls make it unnecessary.

Updated Fuse can be downloaded from the first post in this thread.
You do not have the required permissions to view the files attached to this post.

caspardavidfriedrich
Posts: 43
Joined: Thu Dec 01, 2016 3:19 am
Location: Bracknell, UK

Re: [Fuse] Multi-Merge

#8

Post by caspardavidfriedrich » Wed Sep 20, 2017 3:04 am

Looks super cool Brian, thanks!

User avatar
JUNE
Fusioneer
Posts: 159
Joined: Wed Aug 06, 2014 5:45 am
Been thanked: 13 times
Contact:

Re: [Fuse] Multi-Merge

#9

Post by JUNE » Wed Sep 20, 2017 4:34 am

:D

FredP
Posts: 12
Joined: Wed Apr 13, 2016 8:02 pm

Re: [Fuse] Multi-Merge

#10

Post by FredP » Fri Sep 22, 2017 6:13 pm

That's a nice tool Bryan!

rebelorelse
Posts: 16
Joined: Sun Sep 06, 2015 3:59 am
Been thanked: 1 time
Contact:

Re: [Fuse] Multi-Merge

#11

Post by rebelorelse » Sat Sep 23, 2017 6:23 am

Thanks for the tool! Very useful within building UI with plenty of separate elements!

edenexposito
Posts: 29
Joined: Fri Mar 23, 2018 2:36 am

Re: [Fuse] Multi-Merge

#12

Post by edenexposito » Sun Mar 25, 2018 8:05 am

Great Job here!

Apply Mode/Operator control by each layer would be great addition!

Thanks for all