- Posts: 15
- Joined: Tue Dec 20, 2022 2:31 am
- Real Name: Robert McLendon
cinerobert wrote:Now, I want to apply transform settins (size, position) to the video *without affecting the image mask*..
There are many many ways to do this, but if you want the most basic version with two nodes, you can add transform node and add your mask to transform node. If its simple shape like in your screenshot, probably best to add rectangle mask where you can control the mask separately. And in transform node you can control the video, separately.
Here I made a quick demo. Copy and paste this code to your node tree in fusion.
- Code: Select all
{
Tools = ordered() {
RectangleMask = RectangleMask {
NameSet = true,
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" }, },
Height = Input { Value = 1, }
},
ViewInfo = OperatorInfo { Pos = { 448.805, 22.3281 } },
},
Transform = Transform {
CtrlWZoom = false,
NameSet = true,
Inputs = {
ApplyMaskInverted = Input { Value = 1, },
MultiplyByMask = Input { Value = 1, },
Input = Input {
SourceOp = "Video",
Source = "Output",
},
EffectMask = Input {
SourceOp = "RectangleMask",
Source = "Mask",
}
},
ViewInfo = OperatorInfo { Pos = { 448.805, 110.207 } },
},
Video = Background {
NameSet = true,
Inputs = {
GlobalOut = Input { Value = 500, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Type = Input { Value = FuID { "Corner" }, },
TopLeftRed = Input { Value = 1, },
TopRightGreen = Input { Value = 1, },
BottomLeftBlue = Input { Value = 1, }
},
ViewInfo = OperatorInfo { Pos = { 317.472, 110.207 } },
}
}
}
If you have png image as a black and white mask with no alpha channel, just black and white. Than you can use luminance for channel source for the mask.
You can build on that to as much control or complexity as you like, but that is probably the simplest way.