Ok, since I see you have an instance of your mediaIn, either you create another instance of it (for the sake of my example since you may want to use one of these yet there) and you input your polygon mask into the blue input of this instance, or you add a matte control node after a MediaIn and add the polygon into its blue mask input and go to the MC settings and tick "multiply by mask").
These 2 options will give you just the portion you need...
Which you can then merge later on.
(this is so basic that I still hope it's what you wanted)
Here the code you can copy and paste anywhere in an empty space of your node flow (I renamed the loaders with "mediain" for you).
- Code: Select all
{
Tools = ordered() {
MediaIn_1 = Loader {
Clips = {
},
NameSet = true,
Inputs = {
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
["Clip1.PNGFormat.PostMultiply"] = Input { Value = 1, },
EffectMask = Input {
SourceOp = "Polygon1_1",
Source = "Mask",
}
},
ViewInfo = OperatorInfo { Pos = { 660, 49.5 } },
},
Polygon1_1 = 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 = "Polygon1_1Polyline",
Source = "Value",
},
Polyline2 = Input {
Value = Polyline {
},
Disabled = true,
},
},
ViewInfo = OperatorInfo { Pos = { 550, 49.5 } },
},
Polygon1_1Polyline = BezierSpline {
SplineColor = { Red = 173, Green = 255, Blue = 47 },
CtrlWZoom = false,
NameSet = true,
KeyFrames = {
[0] = { 0, Flags = { Linear = true, LockedY = true }, Value = Polyline {
Closed = true,
Points = {
{ Linear = true, X = -0.476394849785408, Y = -0.0345622119815668, LX = 0.0350500715307582, LY = 0.0414746543778802, RX = 0.0100143061516452, RY = -0.129032258064516 },
{ Linear = true, X = -0.446351931330472, Y = -0.421658986175115, LX = -0.0100143061516452, LY = 0.129032258064516, RX = 0.231759656652361, RY = 0.000768049155145926 },
{ Linear = true, X = 0.248927038626609, Y = -0.419354838709677, LX = -0.231759656652361, LY = -0.000768049155145926, RX = -0.00715307582260372, RY = 0.175115207373272 },
{ Linear = true, X = 0.227467811158798, Y = 0.105990783410138, LX = 0.00715307582260372, LY = -0.175115207373272, RX = -0.199570815450644, RY = -0.0053763440860215 },
{ Linear = true, X = -0.371244635193133, Y = 0.0898617511520737, LX = 0.199570815450644, LY = 0.0053763440860215, RX = -0.0350500715307582, RY = -0.0414746543778802 }
}
} }
}
},
MatteControl1 = MatteControl {
CtrlWZoom = false,
Inputs = {
MultiplyByMask = Input { Value = 1, },
Filter = Input { Value = FuID { "Fast Gaussian" }, },
EffectMask = Input {
SourceOp = "Polygon1",
Source = "Mask",
},
PostMultiplyImage = Input { Value = 1, },
Background = Input {
SourceOp = "MediaIn",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 330, 49.5 } },
},
MediaIn = Loader {
Clips = {
},
NameSet = true,
Inputs = {
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
["Clip1.PNGFormat.PostMultiply"] = Input { Value = 1, },
},
ViewInfo = OperatorInfo { Pos = { 165, 49.5 } },
},
Polygon1 = 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 = "Polygon1Polyline",
Source = "Value",
},
Polyline2 = Input {
Value = Polyline {
},
Disabled = true,
},
},
ViewInfo = OperatorInfo { Pos = { 330, 16.5 } },
},
Polygon1Polyline = BezierSpline {
SplineColor = { Red = 173, Green = 255, Blue = 47 },
CtrlWZoom = false,
NameSet = true,
KeyFrames = {
[0] = { 0, Flags = { Linear = true, LockedY = true }, Value = Polyline {
Closed = true,
Points = {
{ Linear = true, X = -0.476394849785408, Y = -0.0345622119815668, LX = 0.0350500715307582, LY = 0.0414746543778802, RX = 0.0100143061516452, RY = -0.129032258064516 },
{ Linear = true, X = -0.446351931330472, Y = -0.421658986175115, LX = -0.0100143061516452, LY = 0.129032258064516, RX = 0.231759656652361, RY = 0.000768049155145926 },
{ Linear = true, X = 0.248927038626609, Y = -0.419354838709677, LX = -0.231759656652361, LY = -0.000768049155145926, RX = -0.00715307582260372, RY = 0.175115207373272 },
{ Linear = true, X = 0.227467811158798, Y = 0.105990783410138, LX = 0.00715307582260372, LY = -0.175115207373272, RX = -0.199570815450644, RY = -0.0053763440860215 },
{ Linear = true, X = -0.371244635193133, Y = 0.0898617511520737, LX = 0.199570815450644, LY = 0.0053763440860215, RX = -0.0350500715307582, RY = -0.0414746543778802 }
}
} }
}
}
}
}