smartMerge v1.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Alexey Kuchinski
Context sensitive Merge node.
Requirements:
12.2, 12.1, 12.0, 11.3, 11.2, 11.1, 11.0, 10.5, 10 or later
Linux, Mac, Windows
14 Nov 2020
166

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

 node

if selecting multiple nodes multiple Merges will be created

 nodes

if you like this scipt i would recommend to you to use it with 'Dots' script

 dots

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')

Please login in order to download these files.

Comments   

 
+1 # Frank Rueter 2016-06-19 00:59
very nice. one of those things that should be default behaviour.
thanks for sharing!
 
 
0 # Jung Keun Kim 2017-06-04 06:35
viewer matte overlay shortcut "m" crash with this gizmo's shortcut
 
 
0 # Prasannakumar T Bhat 2020-10-28 11:54
replace
Quote:
n.addCommand( 'Merge', 'myMerge.mergeThis()', 'm')
to this in menu.py
Quote:
n.addCommand( 'Merge', 'myMerge.mergeThis()', 'm', shortcutContext=2)
 
 
0 # Prasannakumar T Bhat 2020-10-28 11:41
thanks for the great tool.. I have been using it everyday.

But I found one strange behavior. if we have transform exported from tracker, It creates mergemat instead of Merge. Out of curiosity I dig inside code, It checks for 'Mat' in name for mergemat, unfortunately exported transform has 'Transform_Matchmove' in its name. Any workaround for this?

Hope you will solve this. Thanks again.
 
 
0 # Alexey Kuchinski 2020-11-14 15:04
Hi Prasannakumar T Bhat,
sorry for the late reply, i will reupload fixed version soon, thank you for pointing out.

Saying that i would recommend you to have a look on this code from Falk Hoffman. I think it is better implementation than my code.

http://www.nukepedia.com/python/nodegraph/nuke_smart_nodes

cheers!!!
 
 
0 # li zhaohui 2020-11-15 07:19
But I don't know what the reason is!
import yaml
ImportError: No module named yaml
 
 
0 # Alexey Kuchinski 2020-11-15 07:26
are you sure you are leaving comment in right place?

my code has no yaml import as much as i aware of.
 
 
0 # Alexey Kuchinski 2020-11-15 07:27
--------------- -----
 
 
0 # li zhaohui 2021-05-14 07:55
nuke13,Merge The node arrangement is not normal
 

You have no rights to post comments

We have 3237 guests and 59 members online