- Posts: 112
- Joined: Sat Mar 21, 2020 6:36 pm
- Real Name: Stacy Rothwell
In your Rectangle, use an Expression to multiply the two sliders together. Here's an example:
- Code: Select all
{
Tools = ordered() {
Rectangle1 = RectangleMask {
CtrlWZoom = false,
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" }, },
Width = Input { Value = 1, },
Height = Input {
Value = 0,
Expression = "Animation*HeightControl",
},
Animation = Input {
SourceOp = "Rectangle1Animation",
Source = "Value",
},
HeightControl = Input { Value = 0.504, },
},
ViewInfo = OperatorInfo { Pos = { 486, 85.5454 } },
UserControls = ordered() {
Animation = {
LINKS_Name = "Animation",
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
INP_Integer = false,
INP_MinScale = 0,
INP_MaxScale = 1,
},
HeightControl = {
LINKS_Name = "Height Control",
LINKID_DataType = "Number",
INPID_InputControl = "SliderControl",
INP_Integer = false,
INP_MinScale = 0,
INP_MaxScale = 1,
}
}
},
Rectangle1Animation = BezierSpline {
SplineColor = { Red = 8, Green = 231, Blue = 163 },
NameSet = true,
KeyFrames = {
[0] = { 0, RH = { 7.33333333333333, 0 }, Flags = { Linear = true } },
[22] = { 1, LH = { 10.6, 1.392 }, RH = { 24.0221126780209, 0.930467704404897 } },
[26] = { 1, LH = { 24.6666666666667, 1 } }
}
}
},
ActiveTool = "Rectangle1"
}
The controls are on the added User tab.