Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Tools = ordered() {
- Text1_1 = TextPlus {
- Inputs = {
- GlobalOut = Input { Value = 264, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- Center = Input { Value = { 0.015, 0.5 }, },
- LayoutRotation = Input { Value = 1, },
- TransformRotation = Input { Value = 1, },
- ElementShape1 = Input { Value = 2, },
- Level1 = Input { Value = 1, },
- ExtendVertical1 = Input { Value = 2, },
- ShadingMappingAngle1 = Input { Value = -90, },
- ShadingMappingSize1 = Input { Value = 1.811, },
- ShadingMappingLevel1 = Input { Value = 2, },
- Softness1 = Input { Value = 1, },
- Size1 = Input { Value = 1, },
- SizeY1 = Input { Value = 0.551, },
- StyledText = Input {
- Value = "TEXT PLUS",
- Expression = "string.rep(Comments.Value,CsvReader.NumberIn1)",
- },
- Font = Input { Value = "Open Sans", },
- Style = Input { Value = "Bold", },
- Size = Input { Value = 0.0238, },
- VerticalJustificationNew = Input { Value = 3, },
- HorizontalLeftCenterRight = Input { Value = -1, },
- HorizontalJustificationNew = Input { Value = 3, },
- Comments = Input { Value = "*", }
- },
- ViewInfo = OperatorInfo { Pos = { 385, -16.5 } },
- Version = 1
- },
- Background1 = Background {
- Inputs = {
- GlobalOut = Input { Value = 264, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- Type = Input { Value = FuID { "Gradient" }, },
- Gradient = Input {
- Value = Gradient {
- Colors = {
- [0] = { 0, 1, 0, 1 },
- [0.472636815920398] = { 1, 0.666666666666667, 0, 1 },
- [1] = { 1, 0, 0, 1 }
- }
- },
- },
- EffectMask = Input {
- SourceOp = "Text1_1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 495, -16.5 } },
- },
- Transform1 = Transform {
- Inputs = {
- Center = Input { Value = { 0.914, 0.502 }, },
- Pivot = Input { Value = { 0.5, -0.01 }, },
- UseSizeAndAspect = Input { Value = 0, },
- YSize = Input {
- Value = 0,
- Expression = "CsvReader.NumberIn1/100",
- },
- Input = Input {
- SourceOp = "Rectangle1",
- Source = "Mask",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 495, 16.5 } },
- },
- Rectangle1 = RectangleMask {
- Inputs = {
- Filter = Input { Value = FuID { "Fast Gaussian" }, },
- MaskWidth = Input { Value = 1920, },
- MaskHeight = Input { Value = 1080, },
- PixelAspect = Input { Value = { 1, 1 }, },
- UseFrameFormatSettings = Input { Value = 1, },
- ClippingMode = Input { Value = FuID { "None" }, },
- Width = Input { Value = 0.1, },
- Height = Input { Value = 1, }
- },
- ViewInfo = OperatorInfo { Pos = { 385, 16.5 } },
- },
- Background1_1 = Background {
- Inputs = {
- GlobalOut = Input { Value = 264, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- Type = Input { Value = FuID { "Gradient" }, },
- Start = Input { Value = { 1, 0 }, },
- End = Input { Value = { 1, 1 }, },
- Gradient = Input {
- Value = Gradient {
- Colors = {
- [0] = { 0, 1, 0, 1 },
- [0.472636815920398] = { 1, 0.666666666666667, 0, 1 },
- [1] = { 1, 0, 0, 1 }
- }
- },
- },
- EffectMask = Input {
- SourceOp = "Transform1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 605, 16.5 } },
- },
- Text1 = TextPlus {
- Inputs = {
- GlobalOut = Input { Value = 264, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- Center = Input { Value = { 0.01, 0.5 }, },
- LayoutRotation = Input { Value = 1, },
- CharacterSpacing = Input { Value = 1.109, },
- TransformRotation = Input { Value = 1, },
- TransformSize = Input { Value = 1, },
- CharacterSizeY = Input { Value = 2, },
- ElementShape1 = Input { Value = 2, },
- Round1 = Input { Value = 0.134, },
- Type1 = Input { Value = 2, },
- ShadingGradient1 = Input {
- Value = Gradient {
- Colors = {
- [0] = { 0, 1, 0, 1 },
- [1] = { 1, 0, 0, 1 }
- }
- },
- },
- ShadingMappingAngle1 = Input { Value = -90, },
- ShadingMappingLevel1 = Input { Value = 0, },
- Softness1 = Input { Value = 1, },
- Size1 = Input { Value = 1, },
- StyledText = Input {
- Value = "TEXT PLUS",
- Expression = "string.rep(Comments.Value,CsvReader.NumberIn1/2)",
- },
- Font = Input { Value = "Open Sans", },
- Style = Input { Value = "Bold", },
- Size = Input { Value = 0.0334, },
- VerticalJustificationNew = Input { Value = 3, },
- HorizontalLeftCenterRight = Input { Value = -1, },
- HorizontalJustificationNew = Input { Value = 3, },
- Comments = Input { Value = "o", }
- },
- ViewInfo = OperatorInfo { Pos = { 605, -49.5 } },
- Version = 1
- },
- Merge1 = Merge {
- Inputs = {
- Background = Input {
- SourceOp = "Background1",
- Source = "Output",
- },
- Foreground = Input {
- SourceOp = "Text1",
- Source = "Output",
- },
- Center = Input { Value = { 0.5, 0.763 }, },
- PerformDepthMerge = Input { Value = 0, }
- },
- ViewInfo = OperatorInfo { Pos = { 605, -16.5 } },
- },
- Merge2 = Merge {
- Inputs = {
- Background = Input {
- SourceOp = "Merge1",
- Source = "Output",
- },
- Foreground = Input {
- SourceOp = "Background1_1",
- Source = "Output",
- },
- PerformDepthMerge = Input { Value = 0, }
- },
- ViewInfo = OperatorInfo { Pos = { 715, 16.5 } },
- },
- Merge3 = Merge {
- CtrlWZoom = false,
- Inputs = {
- Background = Input {
- SourceOp = "Merge2",
- Source = "Output",
- },
- Foreground = Input {
- SourceOp = "Text1_2",
- Source = "Output",
- },
- PerformDepthMerge = Input { Value = 0, }
- },
- ViewInfo = OperatorInfo { Pos = { 825, 16.5 } },
- },
- CsvReader = Custom {
- NameSet = true,
- Inputs = {
- SettingsNest = Input { Value = 0, },
- LayersNest = Input { Value = 0, },
- LUTIn1 = Input {
- SourceOp = "CsvReaderLUTIn1",
- Source = "Value",
- },
- LUTIn2 = Input {
- SourceOp = "CsvReaderLUTIn2",
- Source = "Value",
- },
- LUTIn3 = Input {
- SourceOp = "CsvReaderLUTIn3",
- Source = "Value",
- },
- LUTIn4 = Input {
- SourceOp = "CsvReaderLUTIn4",
- Source = "Value",
- },
- NumberControls = Input { Value = 1, },
- ShowNumber2 = Input { Value = 0, },
- ShowNumber3 = Input { Value = 0, },
- ShowNumber4 = Input { Value = 0, },
- ShowNumber5 = Input { Value = 0, },
- ShowNumber6 = Input { Value = 0, },
- ShowNumber7 = Input { Value = 0, },
- 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, },
- FrameRenderScriptNest = Input { Value = 0, },
- TimeOffset = Input { Value = 39, },
- Comments = Input { Value = "-- CSV reader\nlocal t = comp.CurrentTime\nlocal path = fusion:MapPath(tool.File[t])\nif path == '' then print('CSV : No File') return end\nlocal f = io.open(path, 'rb')\nif not f then print('File Not Found:' .. tostring(path)) return end\nlocal txt = f:read('*a')\nf:close()\nlocal cr, lf = string.char(13), string.char(10)\ntxt = txt:gsub(cr .. lf, lf):gsub(cr, lf)\nlocal skip = tool.TitleOnFirstLine[t] >= 0.5\nlocal off = tool.TimeOffset[t]\nlocal sc = tool.TimeScale[t]\nlocal fps = comp:GetPrefs('Comp.FrameFormat.Rate')\nlocal function secs(s)\n s = (s:gsub('%s', ''))\n local v, any = 0, false\n for p in s:gmatch('[^:]+') do\n local n = tonumber(p)\n if not n then return nil end\n v = v * 60 + n\n any = true\n end\n if any then return v end\nend\nlocal keys, t0, first = {}, nil, true\nfor line in txt:gmatch('[^' .. lf .. ']+') do\n if first and skip then\n first = false\n else\n first = false\n local sep = line:find(';', 1, true) and ';' or ','\n local a, b = line:match('^([^' .. sep .. ']*)' .. sep .. '([^' .. sep .. ']*)')\n if a then\n if sep == ';' then b = b:gsub(',', '.') end\n local s, v = secs(a), tonumber(b)\n if s and v then\n t0 = t0 or s\n keys[#keys + 1] = { off + (s - t0) * fps * sc, v }\n end\n end\n end\nend\nif #keys == 0 then print('CSV : No Valid Line') return end\ncomp:Lock()\ncomp:StartUndo('CSV keyframes')\npcall(function()\n local o = tool.NumberIn1:GetConnectedOutput()\n if o then o:GetTool():Delete() end\nend)\ntool.NumberIn1 = comp:BezierSpline({})\nfor _, k in ipairs(keys) do tool.NumberIn1[k[1]] = k[2] end\ncomp:EndUndo(true)\ncomp:Unlock()\nprint('CSV : ' .. #keys .. ' keyframes set on NumberIn1')", }
- },
- ViewInfo = OperatorInfo { Pos = { 825, -49.5 } },
- UserControls = ordered() { File = { LINKID_DataType = "Text", INPS_ExecuteOnChange = "dostring(tool.Comments[0])", ICS_ControlPage = "Controls", INPID_InputControl = "FileControl", LINKS_Name = "File", }, TitleOnFirstLine = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "CheckboxControl", INP_MaxScale = 1, INP_Default = 1, INP_External = false, INP_MinScale = 0, INP_MinAllowed = -1000000, LINKID_DataType = "Number", ICS_ControlPage = "Controls", CBC_TriState = false, INP_SplineType = "Default", LINKS_Name = "Title On First Line" }, TimeOffset = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "SliderControl", INP_MaxScale = 100, INP_Default = 0, ICS_ControlPage = "Controls", INP_MinScale = 0, INP_MinAllowed = -1000000, LINKID_DataType = "Number", INPS_ExecuteOnChange = "print(t)", LINKID_AddBeforeID = "TimeScale", INP_SplineType = "Default", LINKS_Name = "Time Offset (frames)" }, TimeScale = { INP_MaxAllowed = 1000000, INP_Integer = false, INPID_InputControl = "SliderControl", INP_MaxScale = 10, INP_Default = 1, INP_MinScale = 0, INP_MinAllowed = 0, LINKID_DataType = "Number", INP_External = false, ICS_ControlPage = "Controls", INP_SplineType = "Default", LINKS_Name = "Time Scale" }, Go = { INP_MaxAllowed = 1000000, INP_Integer = false, INPID_InputControl = "ButtonControl", BTNCS_Execute = "dostring(tool.Comments[0])", INP_MaxScale = 1, INP_MinScale = 0, INP_MinAllowed = -1000000, LINKID_DataType = "Number", ICS_ControlPage = "Controls", INP_SplineType = "Default", LINKS_Name = "Go" }, NumberIn1 = { INP_MaxAllowed = 1000000, INP_Integer = false, INPID_InputControl = "ScrewControl", INP_MaxScale = 1, INP_MinScale = 0, INP_MinAllowed = -1000000, LINKID_DataType = "Number", ICS_ControlPage = "Controls", INP_SplineType = "Default", LINKS_Name = "Number In 1" }, CommentsNest = {
- LINKS_Name = "Comments",
- LINKID_DataType = "Number",
- INP_Default = 1,
- INP_Integer = false,
- INP_MinScale = 0,
- INP_MaxScale = 1,
- INP_MinAllowed = 0,
- INP_MaxAllowed = 1,
- INP_SplineType = "Default",
- ICS_ControlPage = "Common",
- INP_External = false,
- INP_Passive = true
- }, Comments = {
- LINKS_Name = "Comments",
- LINKID_DataType = "Text",
- ICS_ControlPage = "Common",
- } }
- },
- CsvReaderLUTIn1 = 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 },
- },
- CsvReaderLUTIn2 = 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 },
- },
- CsvReaderLUTIn3 = 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 },
- },
- CsvReaderLUTIn4 = 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 },
- },
- Text1_2 = TextPlus {
- Inputs = {
- GlobalOut = Input { Value = 264, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- LayoutRotation = Input { Value = 1, },
- TransformRotation = Input { Value = 1, },
- Softness1 = Input { Value = 1, },
- StyledText = Input {
- Value = "TEXT PLUS",
- Expression = "string.format(\"%.2f\",CsvReader.NumberIn1) ",
- },
- Font = Input { Value = "Open Sans", },
- Style = Input { Value = "Bold", },
- Size = Input { Value = 0.3504, },
- VerticalJustificationNew = Input { Value = 3, },
- HorizontalJustificationNew = Input { Value = 3, }
- },
- ViewInfo = OperatorInfo { Pos = { 825, -16.5 } },
- Version = 1
- }
- }
- }
Advertisement