Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Tools = ordered() {
- Text1 = TextPlus {
- CtrlWZoom = false,
- NameSet = true,
- Inputs = {
- GlobalOut = Input { Value = 499, },
- Width = Input { Value = 1920, },
- Height = Input { Value = 1080, },
- UseFrameFormatSettings = Input { Value = 1, },
- ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
- LayoutType = Input { Value = 1, },
- Wrap = Input { Value = 1, },
- Center = Input { Value = { 0.5, 0.332 }, },
- LayoutWidth = Input { Value = 0.904312668463612, },
- LayoutRotation = Input { Value = 1, },
- TransformRotation = Input { Value = 1, },
- Softness1 = Input { Value = 1, },
- StyledText = Input {
- Value = "Text Plus",
- Expression = ":\nrate = Tab8Position\ntext = tostring(Comments.Value)\nwordstoshow = time/rate\n\n\nfunction splitParagraphs(text)\n local paragraphs = {}\n -- split the text with carriage return\n for paragraph in text:gmatch(\"([^\\n]*)\\n?\") do\n table.insert(paragraphs, paragraph)\n end\n return paragraphs\nend\n\n\nfunction buildTextUpToWordInParagraphs(paragraphs, nummot)\n local count = 0\n local result = {}\n\n for _, para in ipairs(paragraphs) do\n local paraWords = {}\n -- extract word un the current paragraph\n for mot in para:gmatch(\"%S+\") do\n table.insert(paraWords, mot)\n end\n\n if count + #paraWords < nummot then\n -- On affiche tout le paragraphe\n table.insert(result, para)\n count = count + #paraWords\n else\n -- Afficher uniquement les mots restants à atteindre\n local motsRestants = nummot - count\n local partialPara = {}\n for i = 1, motsRestants do\n table.insert(partialPara, paraWords[i])\n end\n table.insert(result, table.concat(partialPara, \" \"))\n break -- On a atteint nummot, on s’arrête\n end\n end\n\n return table.concat(result, \"\\n\")\nend\n\n\nlocal paragraphs = splitParagraphs(text)\n\nreturn buildTextUpToWordInParagraphs(paragraphs, wordstoshow)\n\n",
- },
- Font = Input { Value = "Open Sans", },
- Style = Input { Value = "Regular", },
- Size = Input { Value = 0.0734, },
- VerticalTopCenterBottom = Input { Value = -1, },
- VerticalJustificationNew = Input { Value = 3, },
- HorizontalLeftCenterRight = Input { Value = -1, },
- HorizontalJustificationNew = Input { Value = 3, },
- TabSpacing = Input { Value = 1, },
- Tab = Input { Value = 7, },
- Tab8Position = Input { Value = 8, },
- Comments = Input { Value = "Description\nThe ColorControl adds a dialog used to select a color. It actually consists of several different sliders and button controls combined together.\nAll of the Inputs associated with a ColorControl return a Text value. \nTo add a ColorControl, set the INPID_InputControl attribute of the AddInput function to the string \"ColorControl\".\nAll the Inputs that make up a ColorControl should have the same IC_ControlGroup attribute. \nThe Red slider should have an IC_ControlID of 0, Green is 1, Blue is 2 and Alpha is 3. See the example below.\nNote that each of the elements is optional - it is perfectly valid to have a color control that displays only an Alpha slider, for example. \nAdditionally, this control can be used to show more than just RGBA. This can be handy for producing color pickers for other channels in the image.", }
- },
- ViewInfo = OperatorInfo { Pos = { 770, -181.5 } },
- },
- Ins_Text1 = TextPlus {
- NameSet = true,
- SourceOp = "Text1",
- Inputs = {
- EffectMask = Input {
- },
- SettingsNest = Input {
- },
- LayersNest = Input {
- },
- ImageNest = Input {
- },
- ["Gamut.ColorSpaceNest"] = Input {
- },
- ["Gamut.GammaSpaceNest"] = Input {
- },
- Layout = Input {
- },
- LayoutRotation = Input {
- Value = 1,
- },
- Background = Input {
- },
- TransformTransform = Input {
- },
- TransformRotation = Input {
- Value = 1,
- },
- TransformPivot = Input {
- },
- TransformShear = Input {
- },
- TransformSize = Input {
- },
- Properties1 = Input {
- },
- Red1 = Input {
- Value = 0.372549019607843,
- },
- Green1 = Input {
- Value = 0.372549019607843,
- },
- Blue1 = Input {
- Value = 0.372549019607843,
- },
- Alpha1 = Input {
- },
- Softness1 = Input {
- Value = 1,
- },
- Position1 = Input {
- },
- Rotation1 = Input {
- },
- PivotNest1 = Input {
- },
- Shear1 = Input {
- },
- Size1 = Input {
- },
- TextText = Input {
- },
- StyledText = Input {
- Value = "Text Plus",
- Expression = "Text1.Comments"
- },
- TabSpacing = Input {
- },
- AdvancedFontControls = Input {
- },
- ClearSelectedKerning = Input {
- },
- ClearAllKerning = Input {
- },
- ClearSelectedPlacement = Input {
- },
- ClearAllPlacement = Input {
- },
- Internal = Input {
- },
- CommentsNest = Input {
- },
- Comments = Input {
- },
- FrameRenderScriptNest = Input {
- },
- StartRenderScripts = Input {
- },
- EndRenderScripts = Input {
- }
- },
- ViewInfo = OperatorInfo { Pos = { 770, -115.5 } },
- },
- Merge1 = Merge {
- Inputs = {
- Background = Input {
- SourceOp = "Ins_Text1",
- Source = "Output",
- },
- Foreground = Input {
- SourceOp = "Text1",
- Source = "Output",
- },
- PerformDepthMerge = Input { Value = 0, }
- },
- ViewInfo = OperatorInfo { Pos = { 935, -181.5 } },
- },
- Transform1 = Transform {
- Inputs = {
- Center = Input {
- Value = { 0.5, 1.08055555555556 },
- Expression = "Point(0.5, 0.5+(Text1.Output.DataWindow[4]-Text1.Output.DataWindow[2])/Text1.Output.Height)",
- },
- Input = Input {
- SourceOp = "Merge1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 1045, -181.5 } },
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment