Totox691

Davinci - DOD calculator

Oct 20th, 2025
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. {
  2. Tools = ordered() {
  3. D1 = MacroOperator {
  4. CtrlWZoom = false,
  5. CustomData = {
  6. Path = {
  7. Map = {
  8. ["Setting:"] = "D:\\Logiciels\\Davinci Resolve\\settings\\setting dans davinci\\Macros\\"
  9. }
  10. },
  11. },
  12. Inputs = ordered() {
  13. MainInput1 = InstanceInput {
  14. SourceOp = "D_1",
  15. Source = "Input",
  16. },
  17. width = InstanceInput {
  18. SourceOp = "D_1",
  19. Source = "width",
  20. Expression = "(self.Input.DataWindow[3]-self.Input.DataWindow[1])/self.Input.Width",
  21. Page = "Controls",
  22. },
  23. height = InstanceInput {
  24. SourceOp = "D_1",
  25. Source = "height",
  26. Expression = "(self.Input.DataWindow[4]-self.Input.DataWindow[2])/self.Input.Height",
  27. Page = "Controls",
  28. },
  29. topleft = InstanceInput {
  30. SourceOp = "D_1",
  31. Source = "topleft",
  32. Expression = "Point(self.Input.DataWindow[1]/self.Input.Width, self.Input.DataWindow[4]/self.Input.Height)",
  33. Page = "Controls",
  34. },
  35. bottomright = InstanceInput {
  36. SourceOp = "D_1",
  37. Source = "bottomright",
  38. Expression = "Point(self.Input.DataWindow[3]/self.Input.Width, self.Input.DataWindow[2]/self.Input.Height)",
  39. Page = "Controls",
  40. }
  41. },
  42. Outputs = {
  43. MainOutput1 = InstanceOutput {
  44. SourceOp = "D_1",
  45. Source = "Output",
  46. }
  47. },
  48. ViewInfo = GroupInfo { Pos = { 165, 82.5 } },
  49. Tools = ordered() {
  50. D_1 = Transform {
  51. CtrlWZoom = false,
  52. CtrlWShown = false,
  53. NameSet = true,
  54. Inputs = {
  55. width = Input { Expression = "(self.Input.DataWindow[3]-self.Input.DataWindow[1])/self.Input.Width", },
  56. height = Input { Expression = "(self.Input.DataWindow[4]-self.Input.DataWindow[2])/self.Input.Height", },
  57. topleft = Input { Expression = "Point(self.Input.DataWindow[1]/self.Input.Width, self.Input.DataWindow[4]/self.Input.Height)", },
  58. bottomright = Input { Expression = "Point(self.Input.DataWindow[3]/self.Input.Width, self.Input.DataWindow[2]/self.Input.Height)", }
  59. },
  60. ViewInfo = OperatorInfo { Pos = { 0, 8.75758 } },
  61. UserControls = ordered() {
  62. width = {
  63. INP_Integer = false,
  64. LINKID_DataType = "Number",
  65. ICS_ControlPage = "Controls",
  66. INP_Passive = true,
  67. INPID_InputControl = "SliderControl",
  68. LINKS_Name = "width",
  69. },
  70. height = {
  71. INP_Integer = false,
  72. LINKID_DataType = "Number",
  73. ICS_ControlPage = "Controls",
  74. INPID_InputControl = "SliderControl",
  75. LINKS_Name = "height",
  76. },
  77. topleft = {
  78. ICS_ControlPage = "Controls",
  79. INPID_InputControl = "OffsetControl",
  80. LINKID_DataType = "Point",
  81. LINKS_Name = "topleft",
  82. },
  83. bottomright = {
  84. ICS_ControlPage = "Controls",
  85. INPID_InputControl = "OffsetControl",
  86. LINKID_DataType = "Point",
  87. LINKS_Name = "bottomright",
  88. }
  89. }
  90. }
  91. },
  92. }
  93. },
  94. ActiveTool = "D1"
  95. }
Advertisement
Add Comment
Please, Sign In to add comment