CompStart

ProAulasCursosElementosSoftware

CompStart

Domine efeitos visuais com técnicas de ponta.

Aprendizado

CursosLiçõesRecursos ProRecursosSoftware

Tools

Tech CheckDisplay CheckMotion BlurPhysLightNuke Tools

Empresa

InstructorMissãoMapa do sitePrivacidadeTermos

Projetos

Moray RenderEXR ConverterOCIO.ccNuke ToolsDerekVFX

Follow

YouTubeInstagramTikTokThreadsContato

© 2026 CompStart. Todos os direitos reservados.

Mesclar Alternativa

ToolSets / Merge
Merge

2026-09-07

ToolSets/merge/mergeAlt.nk

fusão
luminância
cor
matiz
saturação
LCH
utilidade
Ver no GitHub

Combine A e B em CIE-LCH com operações de cor, luminância, saturação ou matiz, além de controles de mistura, máscara, caixa delimitadora e metadados.

A função Merge Alt combina as entradas A e B no espaço CIE-LCH usando operações de cor, luminância, saturação ou matiz. Uma máscara opcional limita onde o efeito se aplica.

O controle de operação seleciona quais componentes do LCH são retirados de A. A mistura dissolve-se entre o B original e o resultado processado, permitindo ajustar a intensidade da mistura.

Você pode definir a caixa delimitadora de saída e os metadados a partir de A ou B. Use essa opção quando precisar transferir características de luminância ou cor entre camadas em vez de uma mesclagem alfa padrão.

Script code

set cut_paste_input [stack 0]
version 13.2 v9
push $cut_paste_input
push 0
Group {
 inputs 2
 name mergeAlt
 tile_color 0x421010ff
 selected true
 xpos -169
 ypos -2
 addUserKnob {20 mergeAlt}
 addUserKnob {4 operation M {color luminance saturation hue ""}}
 operation luminance
 addUserKnob {4 bboxinput l "set bbox to" M {B A "" ""}}
 addUserKnob {4 metainput l "metadata input" -STARTLINE M {B A "" "" "" "" ""}}
 addUserKnob {41 which l mix T Dissolve1.which}
 addUserKnob {26 ""}
 addUserKnob {26 lbl l "" +STARTLINE T "Merge Alt v1.1"}
 addUserKnob {22 btn l DerekVFX.ca T "nuke.tcl('start', 'https://derekvfx.ca')" +STARTLINE}
}
 Input {
  inputs 0
  name A
  xpos 93
  ypos -575
  number 1
 }
set Ncbd6400 [stack 0]
 Input {
  inputs 0
  name B
  xpos 725
  ypos -573
 }
set Ncbd7200 [stack 0]
 Switch {
  inputs 2
  which {{bboxinput}}
  name Switch3
  xpos 1301
  ypos -461
 }
push $Ncbd6400
push $Ncbd7200
 Switch {
  inputs 2
  which {{metainput}}
  name Switch2
  xpos 1094
  ypos -474
 }
 Input {
  inputs 0
  name mask
  xpos 386
  ypos -161
  number 2
 }
push $Ncbd7200
 Colorspace {
  colorspace_out CIE-LCH
  name Colorspace8
  xpos 725
  ypos -461
 }
set Ncbd6b00 [stack 0]
push $Ncbd6400
 Colorspace {
  colorspace_out CIE-LCH
  name Colorspace9
  xpos 93
  ypos -464
 }
set Ncbd5d00 [stack 0]
 ShuffleCopy {
  inputs 2
  red red
  blue blue
  name ShuffleCopy2
  xpos 93
  ypos -314
 }
 Colorspace {
  colorspace_in CIE-LCH
  name Colorspace3
  xpos 93
  ypos -263
 }
push $Ncbd6b00
push $Ncbd5d00
 ShuffleCopy {
  inputs 2
  red red
  green green
  name ShuffleCopy4
  xpos 287
  ypos -320
 }
 Colorspace {
  colorspace_in CIE-LCH
  name Colorspace2
  xpos 287
  ypos -269
 }
push $Ncbd6b00
push $Ncbd5d00
 ShuffleCopy {
  inputs 2
  green green
  blue blue
  name ShuffleCopy1
  xpos 488
  ypos -308
 }
 Colorspace {
  colorspace_in CIE-LCH
  name Colorspace1
  xpos 488
  ypos -257
 }
push $Ncbd6b00
push $Ncbd5d00
 ShuffleCopy {
  inputs 2
  red red
  name ShuffleCopy3
  xpos 725
  ypos -310
 }
 Colorspace {
  colorspace_in CIE-LCH
  name Colorspace10
  xpos 725
  ypos -253
 }
 Switch {
  inputs 4
  which {{operation}}
  name Switch1
  xpos 725
  ypos -199
 }
push $Ncbd7200
 Dot {
  name Dot1
  xpos 906
  ypos -321
 }
 Dissolve {
  inputs 2+1
  channels rgb
  which 1
  name Dissolve1
  xpos 725
  ypos -140
 }
 CopyMetaData {
  inputs 2
  name CopyMetaData1
  xpos 725
  ypos -13
 }
 CopyBBox {
  inputs 2
  name CopyBBox1
  xpos 725
  ypos 50
 }
 Output {
  name Output1
  xpos 725
  ypos 113
 }
end_group