Hey Jan! Annoying one for sure. Specially since the older Merge node did have the expected behaviour.
This has bitten me a few times, and while you could obviously write your own workaround gizmo/plugin, I find the easiest approach is to set up a couple of shortcuts for 'Stencil' and 'Mask' that use the Merge node class instead of Merge2 your_menu_item.addCommand("Merge/Merges/Stencil", "nuke.createNode('Merge', 'operation stencil')", icon = "MergeOut.png") your_menu_item.addCommand("Merge/Merges/Mask", "nuke.createNode('Merge', 'operation mask')", icon = "MergeIn.png") Hope that helps. But it might be worth giving The Foundry a nudge too. On Wed, Oct 12, 2011 at 2:12 PM, Jan Dubberke <j...@dewback.de> wrote: > Hi all, > > "merge all" doesn't seem to work with additional channels when set to > stencil/mask. > > It does work using in/out (which I'm avoiding to use for all the obvious > reasons) > IMO this a bug (and am actually baffled that I didn't come across earlier) > > please have a look at the attached script snippet where I'm trying to alter > the "mask" channel. so set your viewer to "mask" and compare the 2 merge > nodes > > does this make sense to anyone? > cheers, > Jan > > > > set cut_paste_input [stack 0] > version 6.2 v2 > CheckerBoard2 { > inputs 0 > name CheckerBoard1 > selected true > xpos 255 > ypos -169 > } > Roto { > output mask > curves {AnimTree: "" { > Version: 1.2 > Flag: 0 > RootNode: 1 > Node: { > NodeName: "Root" { > Flag: 512 > NodeType: 1 > Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1024 S 0 778 > NumOfAttributes: 10 > "vis" S 0 1 "opc" S 0 1 "mbo" S 0 1 "mb" S 0 1 "mbs" S 0 0.5 "fo" S 0 1 > "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0 > } > NumOfChildren: 1 > Node: { > NodeName: "Ellipse1" { > Flag: 576 > NodeType: 3 > CurveGroup: "" { > Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1057.5 S 0 727.5 > Flag: 0 > NumOfCubicCurves: 2 > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 12 > 0 S 0 -329.99 S 0 0 0 0 S 0 1022.5 S 0 285 0 0 S 0 329.99 S 0 0 0 0 S > 0 0 S 0 -280.284 0 0 S 0 1620 S 0 792.5 0 0 S 0 0 S 0 280.284 0 0 S 0 329.99 > S 0 0 0 0 S 0 1022.5 S 0 1300 0 0 S 0 -329.99 S 0 0 0 0 S 0 0 S 0 280.284 0 > 0 S 0 425 S 0 792.5 0 0 S 0 0 S 0 -280.284 0 > } > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 12 > 0 S 0 -329.99 S 0 0 0 0 S 0 0 S 0 0 0 0 S 0 329.99 S 0 0 0 0 S 0 0 S 0 > -280.284 0 0 S 0 0 S 0 0 0 0 S 0 0 S 0 280.284 0 0 S 0 329.99 S 0 0 0 0 S 0 > 0 S 0 0 0 0 S 0 -329.99 S 0 0 0 0 S 0 0 S 0 280.284 0 0 S 0 0 S 0 0 0 0 S 0 > 0 S 0 -280.284 0 > } > NumOfAttributes: 43 > "vis" S 0 1 "r" S 0 1 "g" S 0 1 "b" S 0 1 "a" S 0 1 "ro" S 0 0 "go" S 0 > 0 "bo" S 0 0 "ao" S 0 0 "opc" S 0 1 "bm" S 0 0 "inv" S 0 0 "mbo" S 0 0 "mb" > S 0 1 "mbs" S 0 0.5 "mbsot" S 0 0 "mbso" S 0 0 "fo" S 0 1 "fx" S 0 0 "fy" S > 0 0 "ff" S 0 1 "ft" S 0 0 "src" S 0 0 "stx" S 0 0 "sty" S 0 0 "str" S 0 0 > "sr" S 0 0 "ssx" S 0 1 "ssy" S 0 1 "ss" S 0 0 "spx" S 0 1024 "spy" S 0 778 > "stot" S 0 0 "sto" S 0 0 "sv" S 0 0 "sf" S 0 1 "sb" S 0 1 "nv" S 0 1 "view1" > S 0 1 "ltn" S 0 690 "ltm" S 0 690 "ltt" S 0 0 "tt" S 0 6 > } > } > NumOfChildren: 0 > } > } > } > } > toolbox {selectAll { > { selectAll ssx 1 ssy 1 sf 1 } > { createBezier ssx 1 ssy 1 sf 1 sb 1 tt 4 } > { createBSpline ssx 1 ssy 1 sf 1 sb 1 } > { createEllipse ssx 1 ssy 1 sf 1 sb 1 tt 6 } > { createRectangle ssx 1 ssy 1 sf 1 sb 1 } > { brush ssx 1 ssy 1 sf 1 sb 1 } > { eraser src 2 ssx 1 ssy 1 sf 1 sb 1 } > { clone src 1 ssx 1 ssy 1 sf 1 sb 1 } > { reveal src 3 ssx 1 ssy 1 sf 1 sb 1 } > { dodge src 1 ssx 1 ssy 1 sf 1 sb 1 } > { burn src 1 ssx 1 ssy 1 sf 1 sb 1 } > { blur src 1 ssx 1 ssy 1 sf 1 sb 1 } > { sharpen src 1 ssx 1 ssy 1 sf 1 sb 1 } > { smear src 1 ssx 1 ssy 1 sf 1 sb 1 } > } } > toolbar_brush_hardness 0.200000003 > toolbar_lifetime_type all > toolbar_source_transform_scale {1 1} > toolbar_source_transform_**center {320 240} > colorOverlay 0 > lifetime_type "all frames" > lifetime_start 690 > lifetime_end 690 > motionblur_shutter_offset_type centred > source_black_outside true > name Roto1 > selected true > xpos 255 > ypos -56 > } > set N2277ad20 [stack 0] > push $cut_paste_input > Roto { > output alpha > curves {AnimTree: "" { > Version: 1.2 > Flag: 0 > RootNode: 1 > Node: { > NodeName: "Root" { > Flag: 512 > NodeType: 1 > Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1024 S 0 778 > NumOfAttributes: 10 > "vis" S 0 1 "opc" S 0 1 "mbo" S 0 1 "mb" S 0 1 "mbs" S 0 0.5 "fo" S 0 1 > "fx" S 0 0 "fy" S 0 0 "ff" S 0 1 "ft" S 0 0 > } > NumOfChildren: 1 > Node: { > NodeName: "Ellipse1" { > Flag: 512 > NodeType: 3 > CurveGroup: "" { > Transform: 0 0 S 0 0 S 0 0 S 0 0 S 0 1 S 0 1 S 0 0 S 0 1057.5 S 0 727.5 > Flag: 0 > NumOfCubicCurves: 2 > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 12 > 0 S 0 -329.99 S 0 0 0 0 S 0 1297.9 S 0 276.9 0 0 S 0 329.99 S 0 0 0 0 > S 0 0 S 0 -280.284 0 0 S 0 1895.4 S 0 784.4 0 0 S 0 0 S 0 280.284 0 0 S 0 > 329.99 S 0 0 0 0 S 0 1297.9 S 0 1291.9 0 0 S 0 -329.99 S 0 0 0 0 S 0 0 S 0 > 280.284 0 0 S 0 700.4 S 0 784.4 0 0 S 0 0 S 0 -280.284 0 > } > CubicCurve: "" { > Type: 0 Flag: 8192 Dim: 2 > NumOfPoints: 12 > 0 S 0 -329.99 S 0 0 0 0 S 0 0 S 0 0 0 0 S 0 329.99 S 0 0 0 0 S 0 0 S 0 > -280.284 0 0 S 0 0 S 0 0 0 0 S 0 0 S 0 280.284 0 0 S 0 329.99 S 0 0 0 0 S 0 > 0 S 0 0 0 0 S 0 -329.99 S 0 0 0 0 S 0 0 S 0 280.284 0 0 S 0 0 S 0 0 0 0 S 0 > 0 S 0 -280.284 0 > } > NumOfAttributes: 43 > "vis" S 0 1 "r" S 0 1 "g" S 0 1 "b" S 0 1 "a" S 0 1 "ro" S 0 0 "go" S 0 > 0 "bo" S 0 0 "ao" S 0 0 "opc" S 0 1 "bm" S 0 0 "inv" S 0 0 "mbo" S 0 0 "mb" > S 0 1 "mbs" S 0 0.5 "mbsot" S 0 0 "mbso" S 0 0 "fo" S 0 1 "fx" S 0 0 "fy" S > 0 0 "ff" S 0 1 "ft" S 0 0 "src" S 0 0 "stx" S 0 0 "sty" S 0 0 "str" S 0 0 > "sr" S 0 0 "ssx" S 0 1 "ssy" S 0 1 "ss" S 0 0 "spx" S 0 1024 "spy" S 0 778 > "stot" S 0 0 "sto" S 0 0 "sv" S 0 0 "sf" S 0 1 "sb" S 0 1 "nv" S 0 1 "view1" > S 0 1 "ltn" S 0 690 "ltm" S 0 690 "ltt" S 0 0 "tt" S 0 6 > } > } > NumOfChildren: 0 > } > } > } > } > toolbox {selectAll { > { selectAll ssx 1 ssy 1 sf 1 } > { selectPoints ssx 1 ssy 1 sf 1 tt 2 } > { createBezier ssx 1 ssy 1 sf 1 sb 1 tt 4 } > { createBSpline ssx 1 ssy 1 sf 1 sb 1 } > { createEllipse ssx 1 ssy 1 sf 1 sb 1 tt 6 } > { createRectangle ssx 1 ssy 1 sf 1 sb 1 } > { brush ssx 1 ssy 1 sf 1 sb 1 } > { eraser src 2 ssx 1 ssy 1 sf 1 sb 1 } > { clone src 1 ssx 1 ssy 1 sf 1 sb 1 } > { reveal src 3 ssx 1 ssy 1 sf 1 sb 1 } > { dodge src 1 ssx 1 ssy 1 sf 1 sb 1 } > { burn src 1 ssx 1 ssy 1 sf 1 sb 1 } > { blur src 1 ssx 1 ssy 1 sf 1 sb 1 } > { sharpen src 1 ssx 1 ssy 1 sf 1 sb 1 } > { smear src 1 ssx 1 ssy 1 sf 1 sb 1 } > } } > toolbar_brush_hardness 0.200000003 > toolbar_lifetime_type all > toolbar_source_transform_scale {1 1} > toolbar_source_transform_**center {320 240} > colorOverlay 0 > lifetime_type "all frames" > lifetime_start 690 > lifetime_end 690 > view {} > motionblur_on true > motionblur_shutter_offset_type centred > source_black_outside true > name Roto2 > selected true > xpos 377 > ypos -56 > } > set Nb8680c30 [stack 0] > Merge2 { > inputs 2 > operation out > also_merge all > name Merge2 > selected true > xpos 377 > ypos 53 > } > push $Nb8680c30 > push $N2277ad20 > Merge2 { > inputs 2 > operation stencil > also_merge all > name Merge1 > selected true > xpos 255 > ypos 52 > } > > ______________________________**_________________ > Nuke-users mailing list > Nuke-users@support.thefoundry.**co.uk<Nuke-users@support.thefoundry.co.uk>, > http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/> > http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-users<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users> >
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users