- Posts: 14
- Joined: Fri Jan 22, 2016 4:28 pm
- Location: United States
Coming from After Effects. Trying to set up a basic inverted alpha matte. I am getting close in Fusion using Channel Boolean. But have an odd issue where in the final merge, the alpha matte is showing through. The issue looks like the alpha matte is showing through as if a screen overlay. The workaround is to use the garbage matte input on a Matte Control. But, would like to learn how to build this properly using Channel Boolean. Just need to learn what are the correct operations.
I used a channel boolean to do the combining of the alpha channels. The operation is set to Subtract, "Do nothing" for the RGB, and the To Alpha is set to "Alpha FG." The alpha matte I created is piped into the boolean as the FG. The element being masked by that alpha matte is piped in as the BG. Viewing the alpha of the Boolean node shows the desired result. So, I then merge the Boolean output over a BG. That is where the alpha matte shows back as a slighty opaque overlay. Not sure what is the problem.
Need some help understanding how to create a simple inverted alpha matte. In After Effects this is super easy (using one layer's alpha as an inverted track matte). Translating that AE comp to Fusion is a bit of a quandry for me. Seems I am not understanding what exact operations are needed.
I included my fusion script below as well as a JPG showing screen grabs of my simple test build.
I used a channel boolean to do the combining of the alpha channels. The operation is set to Subtract, "Do nothing" for the RGB, and the To Alpha is set to "Alpha FG." The alpha matte I created is piped into the boolean as the FG. The element being masked by that alpha matte is piped in as the BG. Viewing the alpha of the Boolean node shows the desired result. So, I then merge the Boolean output over a BG. That is where the alpha matte shows back as a slighty opaque overlay. Not sure what is the problem.
Need some help understanding how to create a simple inverted alpha matte. In After Effects this is super easy (using one layer's alpha as an inverted track matte). Translating that AE comp to Fusion is a bit of a quandry for me. Seems I am not understanding what exact operations are needed.
I included my fusion script below as well as a JPG showing screen grabs of my simple test build.
- Code: Select all
{
Tools = ordered() {
Polygon2 = PolylineMask {
DrawMode = "InsertAndModify",
DrawMode2 = "InsertAndModify",
Inputs = {
Filter = Input { Value = FuID { "Fast Gaussian" }, },
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1 }, },
ClippingMode = Input { Value = FuID { "None" }, },
Polyline = Input {
SourceOp = "Polygon2Polyline",
Source = "Value",
},
Polyline2 = Input {
Value = Polyline {
},
Disabled = true,
},
},
ViewInfo = OperatorInfo { Pos = { 935, 247.5 } },
},
Polygon2Polyline = BezierSpline {
SplineColor = { Red = 173, Green = 255, Blue = 47 },
NameSet = true,
KeyFrames = {
[261] = { 0, Flags = { Linear = true, LockedY = true }, Value = Polyline {
Closed = true,
Points = {
{ Linear = true, X = -0.134093382928711, Y = 0.320463328287869, LX = 0.0528411163644777, LY = -0.0920205945808302, RX = -0.0517553359356386, RY = -0.075933078502903 },
{ Linear = true, X = -0.289359390735626, Y = 0.0926640927791595, LX = 0.0517553359356386, LY = 0.075933078502903, RX = 0.0513934125470546, RY = -0.0984555984939541 },
{ Linear = true, X = -0.13517914712429, Y = -0.202702701091766, LX = -0.0513934125470546, LY = 0.0984555984939541, RX = 0.0532030377630043, RY = 0.0823680818790481 },
{ Linear = true, X = 0.0244299661647225, Y = 0.044401544545378, LX = -0.0532030377630043, LY = -0.0823680818790481, RX = -0.0528411163644777, RY = 0.0920205945808302 }
}
} }
}
},
foreground = TextPlus {
NameSet = true,
Inputs = {
GlobalOut = Input { Value = 401, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Center = Input { Value = { 0.363192182410423, 0.571428571428571 }, },
StyledText = Input { Value = "FG", },
Font = Input { Value = "Open Sans", },
Style = Input { Value = "Bold", },
VerticalJustificationNew = Input { Value = 3, },
HorizontalJustificationNew = Input { Value = 3, },
ManualFontKerningPlacement = Input {
Value = StyledText {
Array = {
},
Value = ""
},
},
},
ViewInfo = OperatorInfo { Pos = { 935, 313.5 } },
},
Merge3 = Merge {
Inputs = {
Background = Input {
SourceOp = "FG_element",
Source = "Output",
},
Foreground = Input {
SourceOp = "foreground",
Source = "Output",
},
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 1045, 313.5 } },
},
FG_element = Background {
NameSet = true,
Inputs = {
GlobalOut = Input { Value = 401, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftRed = Input { Value = 0.835, },
TopLeftGreen = Input { Value = 0.261355, },
TopLeftBlue = Input { Value = 0.261355, },
EffectMask = Input {
SourceOp = "Polygon2",
Source = "Mask",
}
},
ViewInfo = OperatorInfo { Pos = { 1045, 247.5 } },
},
Text1 = TextPlus {
Inputs = {
GlobalOut = Input { Value = 401, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Center = Input { Value = { 0.691096634093377, 0.565637065637066 }, },
StyledText = Input { Value = "Track Matte", },
Font = Input { Value = "Open Sans", },
Style = Input { Value = "Bold", },
VerticalJustificationNew = Input { Value = 3, },
HorizontalJustificationNew = Input { Value = 3, },
ManualFontKerningPlacement = Input {
Value = StyledText {
Array = {
},
Value = ""
},
},
},
ViewInfo = OperatorInfo { Pos = { 1265, 313.5 } },
},
Ellipse2 = EllipseMask {
Inputs = {
Filter = Input { Value = FuID { "Fast Gaussian" }, },
MaskWidth = Input { Value = 1920, },
MaskHeight = Input { Value = 1080, },
PixelAspect = Input { Value = { 1, 1 }, },
ClippingMode = Input { Value = FuID { "None" }, },
Center = Input { Value = { 0.680132450331126, 0.558823529411765 }, },
},
ViewInfo = OperatorInfo { Pos = { 1265, 247.5 } },
},
Merge4 = Merge {
Inputs = {
Background = Input {
SourceOp = "TrackMatte",
Source = "Output",
},
Foreground = Input {
SourceOp = "Text1",
Source = "Output",
},
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 1375, 313.5 } },
},
TrackMatte = Background {
NameSet = true,
Inputs = {
GlobalOut = Input { Value = 401, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftRed = Input { Value = 0.047628, },
TopLeftGreen = Input { Value = 0.567, },
TopLeftBlue = Input { Value = 0.105797664, },
EffectMask = Input {
SourceOp = "Ellipse2",
Source = "Mask",
}
},
ViewInfo = OperatorInfo { Pos = { 1375, 247.5 } },
},
BG = Background {
NameSet = true,
Inputs = {
GlobalOut = Input { Value = 401, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Type = Input { Value = FuID { "Horizontal" }, },
TopLeftRed = Input { Value = 0.764, },
TopLeftGreen = Input { Value = 0.74300528, },
TopLeftBlue = Input { Value = 0.239132, },
TopRightRed = Input { Value = 0.101023, },
TopRightGreen = Input { Value = 0.135516424, },
TopRightBlue = Input { Value = 0.409, },
BottomLeftRed = Input { Value = 0.228, },
BottomLeftGreen = Input { Value = 0.092112, },
BottomLeftBlue = Input { Value = 0.092112, },
BottomRightRed = Input { Value = 0.275114, },
BottomRightGreen = Input { Value = 0.374059984, },
BottomRightBlue = Input { Value = 0.457, },
},
ViewInfo = OperatorInfo { Pos = { 1540, 247.5 } },
},
ChannelBooleans2 = ChannelBoolean {
Inputs = {
Operation = Input { Value = 2, },
ToRed = Input { Value = 4, },
ToGreen = Input { Value = 4, },
ToBlue = Input { Value = 4, },
Background = Input {
SourceOp = "Merge3",
Source = "Output",
},
Foreground = Input {
SourceOp = "Merge4",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 1210, 445.5 } },
},
FinalMerge = Merge {
CtrlWZoom = false,
NameSet = true,
Inputs = {
Background = Input {
SourceOp = "BG",
Source = "Output",
},
Foreground = Input {
SourceOp = "AlphaMultiply1",
Source = "Output",
},
SubtractiveAdditive = Input { Value = 0, },
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 1540, 511.5 } },
},
AlphaMultiply1 = AlphaMultiply {
Inputs = {
Input = Input {
SourceOp = "ChannelBooleans2",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 1210, 511.5 } },
}
}
}
- Attachments
-
- Alpha_Matte_Help.jpg (359.58 KiB) Viewed 1556 times