Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Tools = ordered() {
- TimeStretcher2 = TimeStretcher {
- Inputs = {
- SourceTime = Input {
- SourceOp = "TimeStretcher2SourceTime",
- Source = "Value",
- Expression = ":\nlocal ix=tonumber(string.match(self.Name, \"TimeStretcher(%d+)$\"))\nix=ix-1\nlocal n=v.NumberIn1\nlocal i=v.NumberIn2\nlocal saw=time % i -- n3\nlocal switch=math.floor(time/i) % n -- n4\nlocal phase = i*math.floor(time/(n*i)) -- n5\nlocal val = phase+saw -- n6\nlocal step = phase+i -- n7\nif switch == ix then\n print(\"val\",time,val) \n return val\n elseif switch > ix then\n print(\"step\",time,step) \n return step\n else\n print(\"phase\",time,phase) \n return phase\nend",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 0, 82.5 } },
- },
- TimeStretcher2SourceTime = BezierSpline {
- SplineColor = { Red = 233, Green = 217, Blue = 243 },
- CtrlWZoom = false,
- KeyFrames = {
- [0] = { 0, RH = { 10, 0 }, Flags = { Linear = true, Loop = true, LoopRel = true } },
- [30] = { 0, LH = { 20, 0 }, RH = { 40, 10 }, Flags = { Linear = true } },
- [60] = { 30, LH = { 50, 20 }, RH = { 70, 30 }, Flags = { Linear = true } },
- [90] = { 30, LH = { 80, 30 }, Flags = { Linear = true, Loop = true, LoopRel = true } }
- }
- },
- TimeStretcher1 = TimeStretcher {
- CurrentSettings = 2,
- CustomData = { Settings = { [1] = { Tools = ordered() { TimeStretcher1 = TimeStretcher { Inputs = { SourceTime = Input { Value = 160, Expression = ":\nlocal ix=tonumber(string.match(self.Name, \"TimeStretcher(%d+)$\"))\nix=ix-1\nlocal n=v.NumberIn1\nlocal i=v.NumberIn2\nlocal saw=time % i -- n3\nlocal switch=math.floor(time/i) % n -- n4\nlocal phase = i*math.floor(time/(n*i)) -- n5\nlocal val = phase+saw -- n6\nlocal step = phase+i -- n7\nif switch == ix then\n print(\"val\",time,val) \n return val\n elseif switch > ix then\n print(\"step\",time,step) \n return step\n else\n print(\"phase\",time,phase) \n return phase\nend\n" }, Input = Input { SourceOp = "Letterbox1", Source = "Output" } }, CtrlWZoom = false, ViewInfo = OperatorInfo { Pos = { 0, 16.5 } }, CustomData = {
- } } } }, }, },
- Inputs = {
- SourceTime = Input {
- Value = 0,
- Expression = ":\nlocal ix=tonumber(string.match(self.Name, \"TimeStretcher(%d+)$\"))\nix=ix-1\nlocal n=v.NumberIn1 -- number of clips\nlocal i=v.NumberIn2 -- time interval\nlocal saw=time % i -- saw teeth depending on time and interval \nlocal switch=math.floor(time/i) % n -- current switch depending on number of inputs\nlocal phase = i*math.floor(time/(n*i)) -- base value depending on the relative time\nlocal val = phase+saw -- ramp value\nlocal step = phase+i -- value to reach at each phase\nif switch == ix then \n return val -- current ramp value\n elseif switch > ix then\n return step -- maintain the reached value\n else\n return phase -- wait to apply ramp\nend\n",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 0, 16.5 } },
- },
- TimeStretcher3 = TimeStretcher {
- CtrlWZoom = false,
- Inputs = {
- SourceTime = Input {
- SourceOp = "TimeStretcher3SourceTime",
- Source = "Value",
- Expression = ":\nlocal ix=tonumber(string.match(self.Name, \"TimeStretcher(%d+)$\"))\nix=ix-1\nlocal n=v.NumberIn1\nlocal i=v.NumberIn2\nlocal saw=time % i -- n3\nlocal switch=math.floor(time/i) % n -- n4\nlocal phase = i*math.floor(time/(n*i)) -- n5\nlocal val = phase+saw -- n6\nlocal step = phase+i -- n7\nif switch == ix then\n print(\"val\",time,val) \n return val\n elseif switch > ix then\n print(\"step\",time,step) \n return step\n else\n print(\"phase\",time,phase) \n return phase\nend\n\n",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 0, 148.5 } },
- },
- TimeStretcher3SourceTime = BezierSpline {
- SplineColor = { Red = 233, Green = 217, Blue = 243 },
- CtrlWZoom = false,
- KeyFrames = {
- [0] = { 0, RH = { 20, 0 }, Flags = { Linear = true, Loop = true, LoopRel = true } },
- [60] = { 0, LH = { 40, 0 }, RH = { 70, 10 }, Flags = { Linear = true } },
- [90] = { 30, LH = { 80, 20 }, Flags = { Linear = true, Loop = true, LoopRel = true } }
- }
- },
- Switch1 = Switch {
- Inputs = {
- NumberOfInputs = Input { Value = 3, },
- Source = Input {
- Value = 2,
- Expression = "v.NumberIn4",
- },
- Input0 = Input {
- SourceOp = "TimeStretcher1",
- Source = "Output",
- },
- Input1 = Input {
- SourceOp = "TimeStretcher2",
- Source = "Output",
- },
- Input2 = Input {
- SourceOp = "TimeStretcher3",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 165, 82.5 } },
- Colors = { TileColor = { R = 0.572549019607843, G = 0.572549019607843, B = 0.572549019607843 }, }
- },
- Text2_1 = TextPlus {
- Inputs = {
- GlobalOut = Input { Value = 400, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- Wrap = Input { Value = 1, },
- LayoutRotation = Input { Value = 1, },
- TransformRotation = Input { Value = 1, },
- Softness1 = Input { Value = 1, },
- StyledText = Input {
- Value = "B",
- Expression = "\"B-\"..TimeStretcher2.SourceTime",
- },
- Font = Input { Value = "Open Sans", },
- Style = Input { Value = "Bold", },
- Size = Input { Value = 0.2, },
- VerticalJustificationNew = Input { Value = 3, },
- HorizontalJustificationNew = Input { Value = 3, }
- },
- ViewInfo = OperatorInfo { Pos = { 275, 148.5 } },
- },
- MultiMerge1 = MultiMerge {
- Inputs = {
- LayerOrder = Input { Value = ScriptVal { { [0] = 1, 2, 3 } }, },
- Background = Input {
- SourceOp = "Switch1",
- Source = "Output",
- },
- ["Layer1.Foreground"] = Input {
- SourceOp = "Text2",
- Source = "Output",
- },
- ["Layer1.Center"] = Input { Value = { 0.5, 0.748 }, },
- LayerName1 = Input { Value = "Text2 Layer", },
- ["Layer2.Foreground"] = Input {
- SourceOp = "Text2_1",
- Source = "Output",
- },
- LayerName2 = Input { Value = "Text2_1 Layer", },
- ["Layer3.Foreground"] = Input {
- SourceOp = "Text2_2",
- Source = "Output",
- },
- ["Layer3.Center"] = Input { Value = { 0.5, 0.256 }, },
- LayerName3 = Input { Value = "Text2_2 Layer", }
- },
- ViewInfo = OperatorInfo { Pos = { 330, 82.5 } },
- },
- Text2 = TextPlus {
- Inputs = {
- GlobalOut = Input { Value = 400, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- Wrap = Input { Value = 1, },
- LayoutRotation = Input { Value = 1, },
- TransformRotation = Input { Value = 1, },
- Softness1 = Input { Value = 1, },
- StyledText = Input {
- Value = "A",
- Expression = "\"A-\"..TimeStretcher1.SourceTime",
- },
- Font = Input { Value = "Open Sans", },
- Style = Input { Value = "Bold", },
- Size = Input { Value = 0.2, },
- VerticalJustificationNew = Input { Value = 3, },
- HorizontalJustificationNew = Input { Value = 3, }
- },
- ViewInfo = OperatorInfo { Pos = { 330, 16.5 } },
- },
- Text2_2 = TextPlus {
- Inputs = {
- GlobalOut = Input { Value = 400, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- Wrap = Input { Value = 1, },
- LayoutRotation = Input { Value = 1, },
- TransformRotation = Input { Value = 1, },
- Softness1 = Input { Value = 1, },
- StyledText = Input {
- Value = "C",
- Expression = "\"C-\"..TimeStretcher3.SourceTime",
- },
- Font = Input { Value = "Open Sans", },
- Style = Input { Value = "Bold", },
- Size = Input { Value = 0.2, },
- VerticalJustificationNew = Input { Value = 3, },
- HorizontalJustificationNew = Input { Value = 3, }
- },
- ViewInfo = OperatorInfo { Pos = { 385, 148.5 } },
- },
- v = Custom {
- NameSet = true,
- Inputs = {
- NumberIn1 = Input {
- Value = 3,
- Expression = "Switch1.NumberOfInputs",
- },
- NumberIn2 = Input { Value = 60, },
- NumberIn3 = Input {
- Value = 54,
- Expression = "time % NumberIn2",
- },
- NumberIn4 = Input {
- Value = 2,
- Expression = "floor(time/NumberIn2) % NumberIn1",
- },
- NumberIn5 = Input { Expression = "NumberIn2*floor(time/(NumberIn1*NumberIn2))", },
- NumberIn6 = Input {
- Value = 54,
- Expression = "NumberIn5+NumberIn3",
- },
- NumberIn7 = Input {
- Value = 60,
- Expression = "NumberIn5+NumberIn2",
- },
- NumberIn8 = Input {
- Value = 60,
- Expression = ":\nlocal ix=1\nlocal n=v.NumberIn1\nlocal i=v.NumberIn2\nlocal saw=time % i -- n3\nlocal switch=math.floor(time/30) % n -- n4\nlocal phase = i*math.floor(time/(n*i)) -- n5\nlocal val = phase+saw -- n6\nlocal step = phase+i -- n7\nif switch == ix then\n return val\n elseif switch > ix then\n return step\n else\n return phase\nend",
- },
- LUTIn1 = Input {
- SourceOp = "vLUTIn1",
- Source = "Value",
- },
- LUTIn2 = Input {
- SourceOp = "vLUTIn2",
- Source = "Value",
- },
- LUTIn3 = Input {
- SourceOp = "vLUTIn3",
- Source = "Value",
- },
- LUTIn4 = Input {
- SourceOp = "vLUTIn4",
- Source = "Value",
- },
- NumberControls = Input { Value = 1, },
- NameforNumber1 = Input { Value = "n1 number", },
- NameforNumber2 = Input { Value = "n2 interval", },
- ShowNumber3 = Input { Value = 0, },
- NameforNumber3 = Input { Value = "n3 saw", },
- NameforNumber4 = Input { Value = "n4 switch", },
- ShowNumber5 = Input { Value = 0, },
- NameforNumber5 = Input { Value = "n5 phase", },
- ShowNumber6 = Input { Value = 0, },
- NameforNumber6 = Input { Value = "n6 phase+saw", },
- ShowNumber7 = Input { Value = 0, },
- NameforNumber7 = Input { Value = "n7 phase+1", },
- ShowNumber8 = Input { Value = 0, },
- PointControls = Input { Value = 1, },
- ShowPoint1 = Input { Value = 0, },
- ShowPoint2 = Input { Value = 0, },
- ShowPoint3 = Input { Value = 0, },
- ShowPoint4 = Input { Value = 0, },
- LUTControls = Input { Value = 1, },
- ShowLUT1 = Input { Value = 0, },
- ShowLUT2 = Input { Value = 0, },
- ShowLUT3 = Input { Value = 0, },
- ShowLUT4 = Input { Value = 0, },
- Image1 = Input {
- SourceOp = "MultiMerge1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 440, 82.5 } },
- },
- vLUTIn1 = LUTBezier {
- KeyColorSplines = {
- [0] = {
- [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
- [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
- }
- },
- SplineColor = { Red = 255, Green = 255, Blue = 0 },
- },
- vLUTIn2 = LUTBezier {
- KeyColorSplines = {
- [0] = {
- [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
- [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
- }
- },
- SplineColor = { Red = 255, Green = 0, Blue = 255 },
- },
- vLUTIn3 = LUTBezier {
- KeyColorSplines = {
- [0] = {
- [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
- [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
- }
- },
- SplineColor = { Red = 0, Green = 180, Blue = 255 },
- },
- vLUTIn4 = LUTBezier {
- KeyColorSplines = {
- [0] = {
- [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
- [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
- }
- },
- SplineColor = { Red = 180, Green = 255, Blue = 0 },
- CtrlWZoom = false,
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment