Totox691

Davinci Fusion - Gradient Color Reader

Jan 12th, 2026
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.97 KB | None | 0 0
  1. {
  2. Tools = ordered() {
  3. GradientReader = MacroOperator {
  4. Inputs = ordered() {
  5. MainInput1 = InstanceInput {
  6. SourceOp = "CustomTool1LUTIn1",
  7. Source = "Input"
  8. },
  9. NumberIn2 = InstanceInput {
  10. SourceOp = "CustomTool1",
  11. Source = "NumberIn2",
  12. Page = "Controls",
  13. Name = "Speed",
  14. Default = 1
  15. },
  16. Label1768206078300 = InstanceInput {
  17. SourceOp = "Background7",
  18. Source = "Label1768206078300",
  19. Page = "Controls"
  20. },
  21. Start = InstanceInput {
  22. SourceOp = "Background7",
  23. Source = "Start",
  24. Page = "Controls",
  25. DefaultX = 0,
  26. DefaultY = 0.5
  27. },
  28. End = InstanceInput {
  29. SourceOp = "Background7",
  30. Source = "End",
  31. Page = "Controls",
  32. DefaultX = 1,
  33. DefaultY = 0.5
  34. },
  35. Gradient = InstanceInput {
  36. SourceOp = "Background7",
  37. Source = "Gradient",
  38. Page = "Controls"
  39. },
  40. GradientInterpolationMethod = InstanceInput {
  41. SourceOp = "Background7",
  42. Source = "GradientInterpolationMethod",
  43. Page = "Controls",
  44. Name = "Interpolation",
  45. Default = 0
  46. },
  47. Offset = InstanceInput {
  48. SourceOp = "Background7",
  49. Source = "Offset",
  50. Page = "Controls",
  51. Default = 0
  52. },
  53. Repeat = InstanceInput {
  54. SourceOp = "Background7",
  55. Source = "Repeat",
  56. Page = "Controls",
  57. Default = 0
  58. },
  59. },
  60. Outputs = {
  61. MainOutput1 = InstanceOutput {
  62. SourceOp = "Background2",
  63. Source = "Output",
  64. }
  65. },
  66. ViewInfo = GroupInfo { Pos = { 0, 0 } },
  67. Tools = ordered() {
  68. Background7 = Background {
  69. UserControls = ordered() {
  70. Label1768206078300 = {
  71. LINKS_Name = "Gradient",
  72. INPID_InputControl = "LabelControl",
  73. LINKID_DataType = "Number",
  74. LBLC_DropDownButton = true,
  75. LBLC_NumInputs = 6,
  76. INP_External = false,
  77. INP_Passive = true
  78. }
  79. },
  80. Inputs = {
  81. GlobalOut = Input { Value = 124, },
  82. Width = Input { Value = 1920, },
  83. Height = Input { Value = 1080, },
  84. ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
  85. Type = Input { Value = FuID { "Gradient" }, },
  86. Gradient = Input {
  87. Value = Gradient {
  88. Colors = {
  89. [0] = { 0.481, 0, 0, 1 },
  90. [0.177121771217712] = { 0.56909594095941, 0.834, 0.169741697416974, 1 },
  91. [0.291512915129151] = { 0.628997402081644, 0.857076233183857, 0.38, 1 },
  92. [0.472324723247232] = { 0.027, 0.893551569506726, 0.538229166666667, 1 },
  93. [0.649446494464945] = { 0.353601398601398, 0.166, 0.693229166666667, 1 },
  94. [0.811808118081181] = { 0, 0.439, 0.857916666666667, 1 },
  95. [1] = { 1, 1, 0, 1 }
  96. }
  97. },
  98. }
  99. },
  100. ViewInfo = OperatorInfo { Pos = { 495, 49.5 } },
  101. },
  102. CustomTool1 = Custom {
  103. UserControls = ordered() {
  104. NumberIn2 = {
  105. INPID_InputControl = "SliderControl",
  106. LINKS_Name = "Speed",
  107. LINKID_DataType = "Number",
  108. INP_Integer = false,
  109. INP_Default = 1
  110. }
  111. },
  112. CtrlWZoom = false,
  113. Inputs = {
  114. NumberIn1 = Input {
  115. Value = 0.596774193548387,
  116. Expression = "NumberIn2*time/comp.RenderEnd",
  117. },
  118. NumberIn2 = Input { Value = 1, },
  119. LUTIn1 = Input {
  120. SourceOp = "CustomTool1LUTIn1",
  121. Source = "Value",
  122. },
  123. LUTIn2 = Input {
  124. SourceOp = "CustomTool1LUTIn2",
  125. Source = "Value",
  126. },
  127. LUTIn3 = Input {
  128. SourceOp = "CustomTool1LUTIn3",
  129. Source = "Value",
  130. },
  131. LUTIn4 = Input {
  132. SourceOp = "CustomTool1LUTIn4",
  133. Source = "Value",
  134. },
  135. RedExpression = Input { Value = "getr1w(n1,.5)", },
  136. GreenExpression = Input { Value = "getg1w(n1,.5)", },
  137. BlueExpression = Input { Value = "getb1w(n1,.5)", },
  138. AlphaExpression = Input { Value = "geta1w(n1,.5)", },
  139. Image1 = Input {
  140. SourceOp = "Background7",
  141. Source = "Output",
  142. }
  143. },
  144. ViewInfo = OperatorInfo { Pos = { 660, 49.5 } },
  145. },
  146. CustomTool1LUTIn1 = LUTBezier {
  147. KeyColorSplines = {
  148. [0] = {
  149. [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
  150. [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
  151. }
  152. },
  153. SplineColor = { Red = 255, Green = 255, Blue = 0 },
  154. },
  155. CustomTool1LUTIn2 = LUTBezier {
  156. KeyColorSplines = {
  157. [0] = {
  158. [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
  159. [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
  160. }
  161. },
  162. SplineColor = { Red = 255, Green = 0, Blue = 255 },
  163. },
  164. CustomTool1LUTIn3 = LUTBezier {
  165. KeyColorSplines = {
  166. [0] = {
  167. [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
  168. [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
  169. }
  170. },
  171. SplineColor = { Red = 0, Green = 180, Blue = 255 },
  172. },
  173. CustomTool1LUTIn4 = LUTBezier {
  174. KeyColorSplines = {
  175. [0] = {
  176. [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
  177. [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
  178. }
  179. },
  180. SplineColor = { Red = 180, Green = 255, Blue = 0 },
  181. CtrlWZoom = false,
  182. },
  183. Background2 = Background {
  184. CtrlWZoom = false,
  185. Inputs = {
  186. GlobalOut = Input { Value = 124, },
  187. Width = Input { Value = 1920, },
  188. Height = Input { Value = 1080, },
  189. UseFrameFormatSettings = Input { Value = 1, },
  190. ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
  191. TopLeftRed = Input {
  192. SourceOp = "ColorGradient",
  193. Source = "Result",
  194. },
  195. EffectMask = Input {
  196. SourceOp = "CustomTool1",
  197. Source = "Output",
  198. }
  199. },
  200. ViewInfo = OperatorInfo { Pos = { 770, 49.5 } },
  201. },
  202. ColorGradient = Probe {
  203. CtrlWZoom = false,
  204. NameSet = true,
  205. Inputs = {
  206. ImageToProbe = Input {
  207. SourceOp = "CustomTool1",
  208. Source = "Output",
  209. }
  210. },
  211. }
  212. },
  213. }
  214. },
  215. ActiveTool = "GradientReader"
  216. }
Advertisement
Add Comment
Please, Sign In to add comment