Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Tools = ordered() {
- Center = MacroOperator {
- CtrlWZoom = false,
- CustomData = {
- Path = {
- Map = {
- ["Setting:"] = "Macros:\\"
- }
- },
- SxSFilename = "C:\\Users\\Mikael\\AppData\\Roaming\\Blackmagic Design\\DaVinci Resolve\\Support\\Fusion\\Macros\\Center.setting",
- },
- Inputs = ordered() {
- MainInput1 = InstanceInput {
- SourceOp = "Transform1_1",
- Source = "Input",
- },
- CustomTool1_OutputWidth = InstanceInput {
- SourceOp = "CustomTool1_1",
- Source = "OutputWidth",
- Page = "Controls",
- Name = "Output Width",
- Default = 1920,
- },
- CustomTool1_OutputHeight = InstanceInput {
- SourceOp = "CustomTool1_1",
- Source = "OutputHeight",
- Page = "Controls",
- Name = "Output Height",
- Default = 1080,
- },
- Spacer3 = Input {
- Type = "Spacer",
- Page = "Controls",
- },
- CustomTool1_PositionHorizontal = InstanceInput {
- SourceOp = "CustomTool1_1",
- Source = "PositionHorizontal",
- Page = "Controls",
- Name = "Horizontal",
- Default = 1,
- },
- CustomTool1_PositionVertical = InstanceInput {
- SourceOp = "CustomTool1_1",
- Source = "PositionVertical",
- Page = "Controls",
- Name = "Vertical",
- Default = 1,
- },
- Nest1 = Input {
- Value = 1,
- Type = "BeginNest",
- Page = "Controls",
- Name = "Margin",
- },
- AutoDomain1_AdjustLeft = InstanceInput {
- SourceOp = "AutoDomain1_1",
- Source = "AdjustLeft",
- Default = 0,
- },
- AutoDomain1_AdjustBottom = InstanceInput {
- SourceOp = "AutoDomain1_1",
- Source = "AdjustBottom",
- Default = 0,
- },
- AutoDomain1_AdjustRight = InstanceInput {
- SourceOp = "AutoDomain1_1",
- Source = "AdjustRight",
- Default = 0,
- },
- AutoDomain1_AdjustTop = InstanceInput {
- SourceOp = "AutoDomain1_1",
- Source = "AdjustTop",
- Default = 0,
- EndNest = 1,
- }
- },
- Outputs = {
- MainOutput1 = InstanceOutput {
- SourceOp = "Transform3_1",
- Source = "Output",
- }
- },
- ViewInfo = GroupInfo { Pos = { 550, 181.5 } },
- Tools = ordered() {
- Transform1_1 = Transform {
- CtrlWShown = false,
- Inputs = {
- Size = Input { Expression = "math.min(1, CustomTool1_1.OutputWidth / self.Input.OriginalWidth, CustomTool1_1.OutputHeight / self.Input.OriginalHeight)", }
- },
- ViewInfo = OperatorInfo { Pos = { -220, 74.7576 } },
- },
- AutoDomain1_1 = AutoDomain {
- CtrlWShown = false,
- Inputs = {
- Input = Input {
- SourceOp = "Transform1_1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { -110, 74.7576 } },
- },
- Crop1_1 = Crop {
- CtrlWShown = false,
- Inputs = {
- XOffset = Input {
- Value = 169,
- Expression = "AutoDomain1_1.Output.DataWindow[1]",
- },
- YOffset = Input {
- Value = 88,
- Expression = "AutoDomain1_1.Output.DataWindow[2] ",
- },
- XSize = Input {
- Value = 247,
- Expression = "AutoDomain1_1.Output.DataWindow[3] - AutoDomain1_1.Output.DataWindow[1]",
- },
- YSize = Input {
- Value = 70,
- Expression = "AutoDomain1_1.Output.DataWindow[4] - AutoDomain1_1.Output.DataWindow[2]",
- },
- Input = Input {
- SourceOp = "AutoDomain1_1",
- Source = "Output",
- },
- ClippingMode = Input { Value = FuID { "None" }, }
- },
- ViewInfo = OperatorInfo { Pos = { 0, 74.7576 } },
- },
- CustomTool1_1 = Custom {
- CtrlWShown = false,
- Inputs = {
- NumberIn1 = Input { Expression = "AutoDomain1_1.Output.DataWindow[1] ", },
- NumberIn2 = Input { Expression = "AutoDomain1_1.Output.DataWindow[2] ", },
- NumberIn3 = Input { Expression = "AutoDomain1_1.Output.DataWindow[3] ", },
- NumberIn4 = Input { Expression = "AutoDomain1_1.Output.DataWindow[4] ", },
- LUTIn1 = Input {
- SourceOp = "CustomTool1LUTIn1_1",
- Source = "Value",
- },
- LUTIn2 = Input {
- SourceOp = "CustomTool1LUTIn2_1",
- Source = "Value",
- },
- LUTIn3 = Input {
- SourceOp = "CustomTool1LUTIn3_1",
- Source = "Value",
- },
- LUTIn4 = Input {
- SourceOp = "CustomTool1LUTIn4_1",
- Source = "Value",
- },
- PositionVertical = Input { Value = 1, },
- PositionHorizontal = Input { Value = 1, }
- },
- ViewInfo = OperatorInfo { Pos = { 0, 8.75757 } },
- UserControls = ordered() { OutputWidth = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "ScrewControl", INP_MaxScale = 10000, INP_Default = 1920, INP_MinScale = 0, INP_MinAllowed = -1000000, LINKID_DataType = "Number", ICS_ControlPage = "Controls", INP_SplineType = "Default", LINKS_Name = "OutputWidth" }, OutputHeight = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "ScrewControl", INP_MaxScale = 1, INP_Default = 1080, INP_MinScale = 0, INP_MinAllowed = -1000000, LINKID_DataType = "Number", ICS_ControlPage = "Controls", INP_SplineType = "Default", LINKS_Name = "OutputHeight" }, PositionVertical = {
- { MBTNC_AddButton = "Top" },
- { MBTNC_AddButton = "Middle" },
- { MBTNC_AddButton = "Bottom" },
- INP_MaxAllowed = 1000000,
- INP_Integer = false,
- INPID_InputControl = "MultiButtonControl",
- MBTNC_ShowBasicButton = true,
- INP_MaxScale = 1,
- ICS_ControlPage = "Controls",
- INP_SplineType = "Default",
- INP_MinScale = 0,
- INP_MinAllowed = -1000000,
- LINKID_DataType = "Number",
- MBTNC_ShowName = false,
- MBTNC_StretchToFit = false,
- MBTNC_ShowToolTip = false,
- LINKS_Name = "PositionVertical"
- }, PositionHorizontal = {
- { MBTNC_AddButton = "Left" },
- { MBTNC_AddButton = "Middle" },
- { MBTNC_AddButton = "Right" },
- INP_MaxAllowed = 1000000,
- INP_Integer = false,
- INPID_InputControl = "MultiButtonControl",
- MBTNC_ShowBasicButton = true,
- INP_MaxScale = 1,
- ICS_ControlPage = "Controls",
- INP_SplineType = "Default",
- INP_MinScale = 0,
- INP_MinAllowed = -1000000,
- LINKID_DataType = "Number",
- MBTNC_ShowName = false,
- MBTNC_StretchToFit = false,
- MBTNC_ShowToolTip = false,
- LINKS_Name = "PositionHorizontal"
- } }
- },
- CustomTool1LUTIn1_1 = 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 = 0, Blue = 0 },
- CtrlWZoom = false,
- },
- CustomTool1LUTIn2_1 = 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 = 0, Blue = 0 },
- CtrlWZoom = false,
- },
- CustomTool1LUTIn3_1 = 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 = 0, Blue = 0 },
- CtrlWZoom = false,
- },
- CustomTool1LUTIn4_1 = 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 = 0, Blue = 0 },
- CtrlWZoom = false,
- },
- Crop2_1 = Crop {
- CtrlWShown = false,
- Inputs = {
- XOffset = Input { Value = -836, },
- YOffset = Input { Value = -505, },
- XSize = Input {
- Value = 1920,
- Expression = "CustomTool1_1.OutputWidth",
- },
- YSize = Input {
- Value = 1080,
- Expression = "CustomTool1_1.OutputHeight",
- },
- KeepCentered = Input { Value = 1, },
- Input = Input {
- SourceOp = "Crop1_1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 110, 74.7576 } },
- },
- Transform3_1 = Transform {
- CtrlWZoom = false,
- CtrlWShown = false,
- Inputs = {
- Center = Input { Expression = ":\n\nimage = Crop2_1.Output;\nimageWidth = (Crop2_1.Output.DataWindow[3]-Crop2_1.Output.DataWindow[1])/Crop2_1.Output.Width;\nimageHeight = (Crop2_1.Output.DataWindow[4]-Crop2_1.Output.DataWindow[2])/Crop2_1.Output.Height;\nleft = image.DataWindow[1] / image.Width;\nright = image.DataWindow[3] / image.Width;\ntop = image.DataWindow[2] / image.Height;\nbottom = image.DataWindow[4] / image.Height;\n\nx = 0.5;\ny = 0.5;\n\nif CustomTool1_1.PositionHorizontal == 0 then\n x = 0.5 - left;\nend\n\nif CustomTool1_1.PositionHorizontal == 2 then\n x = 0.5 + right - imageWidth;\nend\n\nif CustomTool1_1.PositionVertical == 2 then\n y = 0.5 - top;\nend\n\nif CustomTool1_1.PositionVertical == 0 then\n y = 0.5 + bottom - imageHeight;\nend\n\nreturn Point(x, y);", },
- Input = Input {
- SourceOp = "Crop2_1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 220, 74.7576 } },
- }
- },
- }
- },
- ActiveTool = "Center"
- }
Advertisement
Add Comment
Please, Sign In to add comment