Totox691

Davinci Fusion - Super Petals

Apr 2nd, 2026
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.07 KB | None | 0 0
  1. {
  2. Tools = ordered() {
  3. SuperPetals = MacroOperator {
  4. CtrlWZoom = false,
  5. CustomData = {
  6. SxSFilename = "C:\\Users\\alain\\AppData\\Roaming\\Blackmagic Design\\DaVinci Resolve\\Support\\Fusion\\Macros\\SuperPetals.setting",
  7. Path = {
  8. Map = {
  9. ["Setting:"] = "Macros:\\"
  10. }
  11. },
  12. },
  13. Inputs = ordered() {
  14. Input2 = InstanceInput {
  15. SourceOp = "Polygon1",
  16. Source = "ShowViewControls",
  17. Default = 1,
  18. },
  19. Input3 = InstanceInput {
  20. SourceOp = "Polygon1",
  21. Source = "Level",
  22. Default = 1,
  23. },
  24. Input4 = InstanceInput {
  25. SourceOp = "Polygon1",
  26. Source = "Filter",
  27. },
  28. Input5 = InstanceInput {
  29. SourceOp = "Polygon1",
  30. Source = "SoftEdge",
  31. },
  32. Input6 = InstanceInput {
  33. SourceOp = "Polygon1",
  34. Source = "Passes",
  35. Default = 4,
  36. },
  37. Input7 = InstanceInput {
  38. SourceOp = "Polygon1",
  39. Source = "BorderWidth",
  40. },
  41. Input8 = InstanceInput {
  42. SourceOp = "Polygon1",
  43. Source = "PaintMode",
  44. },
  45. Input9 = InstanceInput {
  46. SourceOp = "Polygon1",
  47. Source = "Invert",
  48. Width = 0.5,
  49. },
  50. Input10 = InstanceInput {
  51. SourceOp = "Polygon1",
  52. Source = "Solid",
  53. Width = 0.5,
  54. Default = 1,
  55. },
  56. Input11 = InstanceInput {
  57. SourceOp = "Polygon1",
  58. Source = "JoinStyle",
  59. Name = "Border Style",
  60. ControlGroup = 11,
  61. Default = 1,
  62. },
  63. Input12 = InstanceInput {
  64. SourceOp = "Polygon1",
  65. Source = "CapStyle",
  66. ControlGroup = 11,
  67. Default = 1,
  68. },
  69. Input13 = InstanceInput {
  70. SourceOp = "Polygon1",
  71. Source = "MiterLimit",
  72. Default = 10,
  73. },
  74. Input14 = InstanceInput {
  75. SourceOp = "Polygon1",
  76. Source = "WritePosition",
  77. Default = 0,
  78. },
  79. Input15 = InstanceInput {
  80. SourceOp = "Polygon1",
  81. Source = "WriteLength",
  82. Default = 1,
  83. },
  84. Input16 = InstanceInput {
  85. SourceOp = "Polygon1",
  86. Source = "Center",
  87. },
  88. Input17 = InstanceInput {
  89. SourceOp = "Polygon1",
  90. Source = "Size",
  91. Default = 1,
  92. },
  93. Input18 = InstanceInput {
  94. SourceOp = "Polygon1",
  95. Source = "XRotation",
  96. Default = 0,
  97. },
  98. Input19 = InstanceInput {
  99. SourceOp = "Polygon1",
  100. Source = "YRotation",
  101. Default = 0,
  102. },
  103. Input20 = InstanceInput {
  104. SourceOp = "Polygon1",
  105. Source = "ZRotation",
  106. Default = 0,
  107. },
  108. Input21 = InstanceInput {
  109. SourceOp = "Polygon1",
  110. Source = "FillMethod",
  111. Default = 0,
  112. },
  113. Input29 = InstanceInput {
  114. SourceOp = "Petals",
  115. Source = "p1",
  116. Page = "Petals",
  117. },
  118. Input30 = InstanceInput {
  119. SourceOp = "Petals",
  120. Source = "n1",
  121. Page = "Petals",
  122. },
  123. Input31 = InstanceInput {
  124. SourceOp = "CustomPoly2",
  125. Source = "n1",
  126. Default = 0.135,
  127. },
  128. Input32 = InstanceInput {
  129. SourceOp = "CustomPoly2",
  130. Source = "n2",
  131. Page = "Petals",
  132. Default = 10,
  133. },
  134. Input33 = InstanceInput {
  135. SourceOp = "CustomPoly2",
  136. Source = "n3",
  137. Page = "Petals",
  138. Default = 1,
  139. },
  140. Input22 = InstanceInput {
  141. SourceOp = "Polygon1",
  142. Source = "OutputSize",
  143. Page = "Image",
  144. },
  145. Input23 = InstanceInput {
  146. SourceOp = "Polygon1",
  147. Source = "ProcessMode",
  148. },
  149. Input24 = InstanceInput {
  150. SourceOp = "Polygon1",
  151. Source = "MaskWidth",
  152. Default = 1920,
  153. },
  154. Input25 = InstanceInput {
  155. SourceOp = "Polygon1",
  156. Source = "MaskHeight",
  157. Default = 1080,
  158. },
  159. Input26 = InstanceInput {
  160. SourceOp = "Polygon1",
  161. Source = "PixelAspect",
  162. DefaultX = 1,
  163. DefaultY = 1,
  164. },
  165. Input27 = InstanceInput {
  166. SourceOp = "Polygon1",
  167. Source = "UseFrameFormatSettings",
  168. Default = 1,
  169. },
  170. Input28 = InstanceInput {
  171. SourceOp = "Polygon1",
  172. Source = "Depth",
  173. Default = 0,
  174. },
  175. EffectMask = InstanceInput {
  176. SourceOp = "Polygon1",
  177. Source = "EffectMask",
  178. }
  179. },
  180. Outputs = {
  181. MainOutput1 = InstanceOutput {
  182. SourceOp = "Polygon1",
  183. Source = "Mask",
  184. }
  185. },
  186. ViewInfo = GroupInfo { Pos = { 550, 115.5 } },
  187. Tools = ordered() {
  188. Polygon1 = PolylineMask {
  189. DrawMode = "InsertAndModify",
  190. DrawMode2 = "InsertAndModify",
  191. CtrlWZoom = false,
  192. CtrlWShown = false,
  193. NameSet = true,
  194. Inputs = {
  195. Filter = Input { Value = FuID { "Fast Gaussian" }, },
  196. OutputSize = Input { Value = FuID { "Custom" }, },
  197. MaskWidth = Input { Value = 1920, },
  198. MaskHeight = Input { Value = 1080, },
  199. PixelAspect = Input { Value = { 1, 1 }, },
  200. UseFrameFormatSettings = Input { Value = 1, },
  201. ClippingMode = Input { Value = FuID { "None" }, },
  202. Polyline = Input {
  203. SourceOp = "Petals",
  204. Source = "Output",
  205. },
  206. Polyline2 = Input {
  207. Value = Polyline {
  208. },
  209. Disabled = true,
  210. }
  211. },
  212. ViewInfo = OperatorInfo { Pos = { -0.9375, 6.75758 } },
  213. },
  214. Petals = CustomPoly {
  215. CtrlWZoom = false,
  216. NameSet = true,
  217. Inputs = {
  218. n9 = Input { Expression = "Polygon1.MaskWidth/Polygon1.MaskHeight", },
  219. SourcePolyline = Input {
  220. SourceOp = "CustomPoly2",
  221. Source = "Output",
  222. },
  223. SourcePolyline2 = Input {
  224. Value = Polyline {
  225. Points = {
  226. { X = -0.5, Y = 0, RX = 0, RY = 0 },
  227. { X = 0.5, Y = 0, LX = 0, LY = 0 }
  228. }
  229. },
  230. },
  231. SourcePolyline3 = Input {
  232. Value = Polyline {
  233. Points = {
  234. { X = -0.5, Y = 0, RX = 0, RY = 0 },
  235. { X = 0.5, Y = 0, LX = 0, LY = 0 }
  236. }
  237. },
  238. },
  239. ShowViewControls = Input { Value = 0, },
  240. NumPoints = Input { Expression = "CustomPoly2.NumPoints/8", },
  241. PolyExpressionX = Input { Value = "px*cos(n1)-py*sin(n1)+p1x-.5", },
  242. PolyExpressionY = Input { Value = "(px*sin(n1)+py*cos(n1))*n9+p1y-.5", },
  243. NumberControls = Input { Value = 1, },
  244. NameforNumber1 = Input { Value = "Angle", },
  245. ShowNumber2 = Input { Value = 0, },
  246. ShowNumber3 = Input { Value = 0, },
  247. ShowNumber4 = Input { Value = 0, },
  248. NameforNumber9 = Input { Value = "Ratio", },
  249. PointControls = Input { Value = 1, },
  250. NameforPoint1 = Input { Value = "Center", }
  251. },
  252. UserControls = ordered() {
  253. n1 = {
  254. INP_MaxAllowed = 1000000,
  255. INP_Integer = false,
  256. INPID_InputControl = "ScrewControl",
  257. INP_MaxScale = 180,
  258. INP_MinScale = -180,
  259. INP_MinAllowed = -1000000,
  260. LINKID_DataType = "Number",
  261. ICS_ControlPage = "Controls",
  262. INP_SplineType = "Default",
  263. LINKS_Name = "Number In 1"
  264. }
  265. }
  266. },
  267. CustomPoly2 = CustomPoly {
  268. Inputs = {
  269. n1 = Input { Value = 0.135, },
  270. SourcePolyline = Input {
  271. SourceOp = "Publish2",
  272. Source = "Value",
  273. },
  274. SourcePolyline2 = Input {
  275. Value = Polyline {
  276. Points = {
  277. { X = -0.5, Y = 0, RX = 0, RY = 0 },
  278. { X = 0.5, Y = 0, LX = 0, LY = 0 }
  279. }
  280. },
  281. },
  282. SourcePolyline3 = Input {
  283. Value = Polyline {
  284. Points = {
  285. { X = -0.5, Y = 0, RX = 0, RY = 0 },
  286. { X = 0.5, Y = 0, LX = 0, LY = 0 }
  287. }
  288. },
  289. },
  290. ShowViewControls = Input { Value = 0, },
  291. NumPoints = Input { Expression = "360*n2+1", },
  292. PolyExpressionX = Input { Value = "px * (1 + n1 * sin(index))*n3", },
  293. PolyExpressionY = Input { Value = "n3*py * (1 + n1 * sin(index))", },
  294. NumberControls = Input { Value = 1, },
  295. NameforNumber1 = Input { Value = "HF Amplitude (relative)", },
  296. NameforNumber2 = Input { Value = "HF Frequency (petals)", },
  297. NameforNumber3 = Input { Value = "Size", },
  298. ShowNumber4 = Input { Value = 0, },
  299. NameforNumber9 = Input { Value = "ratio", },
  300. PointControls = Input { Value = 1, },
  301. ShowPoint1 = Input { Value = 0, },
  302. n2 = Input { Value = 10, },
  303. n3 = Input { Value = 1, }
  304. },
  305. UserControls = ordered() {
  306. n2 = {
  307. INP_MaxAllowed = 1000000,
  308. INP_Integer = true,
  309. INPID_InputControl = "SliderControl",
  310. INP_MaxScale = 10,
  311. INP_MinScale = 3,
  312. INP_MinAllowed = 3,
  313. LINKID_DataType = "Number",
  314. ICS_ControlPage = "Controls",
  315. INP_SplineType = "Default",
  316. LINKS_Name = "HF Frequency (petals)"
  317. },
  318. n3 = {
  319. INP_MaxAllowed = 1000000,
  320. INP_Integer = false,
  321. INPID_InputControl = "SliderControl",
  322. INP_MaxScale = 5,
  323. INP_MinScale = 0,
  324. INP_MinAllowed = 0,
  325. LINKID_DataType = "Number",
  326. ICS_ControlPage = "Controls",
  327. INP_SplineType = "Default",
  328. LINKS_Name = "Number In 3"
  329. }
  330. }
  331. },
  332. Publish2 = PublishPolyLine {
  333. Inputs = {
  334. Value = Input {
  335. Value = Polyline {
  336. Closed = true,
  337. Points = {
  338. { X = -0.25, Y = 3.07913416985883e-17, LX = 1.69088437774545e-17, LY = 0.138071187457698, RX = -1.69088437774545e-17, RY = -0.138071187457698 },
  339. { X = -5.11743425413158e-17, Y = -0.25, LX = -0.138071187457698, LY = 2.53632656661817e-17, RX = 0.138071187457698, RY = -2.53632656661817e-17 },
  340. { X = 0.25, Y = -6.11490025281825e-17, LX = -3.38176875549089e-17, LY = -0.138071187457698, RX = 3.38176875549089e-17, RY = 0.138071187457698 },
  341. { X = 7.13405029495462e-17, Y = 0.25, LX = 0.138071187457698, LY = -4.22721094436361e-17, RX = -0.138071187457698, RY = 4.22721094436361e-17 }
  342. }
  343. },
  344. }
  345. },
  346. },
  347. AnimCurvesonPetalsLookup = LUTBezier {
  348. KeyColorSplines = {
  349. [0] = {
  350. [0] = { 0, RH = { 0.333333333333333, 0.333333333333333 }, Flags = { Linear = true } },
  351. [1] = { 1, LH = { 0.666666666666667, 0.666666666666667 }, Flags = { Linear = true } }
  352. }
  353. },
  354. SplineColor = { Red = 0, Green = 0, Blue = 0 },
  355. CtrlWZoom = false,
  356. }
  357. },
  358. }
  359. },
  360. ActiveTool = "SuperPetals"
  361. }
Advertisement
Add Comment
Please, Sign In to add comment