Context sensitive Merge node.
smartMerge
Updated: 15 November 2020
Author: lamakaha
Compatible Nuke versions: 10.0 or later
Compatibility: Linux, Mac, Windows
v1.2
bug fixed, works properly with every shader now.
changed the instalation target to m=nuke.menu('Nodes') (was in 'Nuke' menu previously which was wrong)
Tool description:
Improved creation of the Merge node
if 2D node is selected 'Merge2' node will be created
if 3D node is selected 'MergeGeo' node will be created
if 'Project3D' is selected 'MergeMat' node will be created
if Deep is selected 'DeepMerge' node will be created
if multiply nodes created - multiply merges will be created
if nothing is selected 'Merge2' node will be created
if selecting multiple nodes multiple Merges will be created
if you like this scipt i would recommend to you to use it with 'Dots' script
have fun!
aaaa, almost forgot
put this code in your menu.py
import myMerge
m=nuke.menu('Nodes')
n=m.addMenu('smartMerge')
n.addCommand( 'Merge', 'myMerge.mergeThis()', 'm')