Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- Tools = ordered() {
- CustomTool1 = Custom {
- Inputs = {
- NumberIn1 = Input { Expression = "AutoDomain1.Output.DataWindow[1] ", },
- NumberIn2 = Input { Expression = "AutoDomain1.Output.DataWindow[2] ", },
- NumberIn3 = Input { Expression = "AutoDomain1.Output.DataWindow[3] ", },
- NumberIn4 = Input { Expression = "AutoDomain1.Output.DataWindow[4] ", },
- LUTIn1 = Input {
- SourceOp = "CustomTool1LUTIn1",
- Source = "Value",
- },
- LUTIn2 = Input {
- SourceOp = "CustomTool1LUTIn2",
- Source = "Value",
- },
- LUTIn3 = Input {
- SourceOp = "CustomTool1LUTIn3",
- Source = "Value",
- },
- LUTIn4 = Input {
- SourceOp = "CustomTool1LUTIn4",
- Source = "Value",
- },
- PositionVertical = Input { Value = 1, },
- PositionHorizontal = Input { Value = 1, }
- },
- ViewInfo = OperatorInfo { Pos = { 605, -148.5 } },
- 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", 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", 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,
- 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,
- 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 = 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 },
- },
- CustomTool1LUTIn2 = 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 },
- },
- CustomTool1LUTIn3 = 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 },
- },
- CustomTool1LUTIn4 = 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 = Crop {
- Inputs = {
- XOffset = Input { Value = -572, },
- YOffset = Input { Value = -83, },
- XSize = Input {
- Value = 1920,
- Expression = "CustomTool1.OutputWidth",
- },
- YSize = Input {
- Value = 1080,
- Expression = "CustomTool1.OutputHeight",
- },
- KeepCentered = Input { Value = 1, },
- Input = Input {
- SourceOp = "Crop1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 660, -82.5 } },
- },
- Crop1 = Crop {
- CtrlWZoom = false,
- Inputs = {
- XOffset = Input {
- Value = 521,
- Expression = "AutoDomain1.Output.DataWindow[1]",
- },
- YOffset = Input {
- Value = 821,
- Expression = "AutoDomain1.Output.DataWindow[2] ",
- },
- XSize = Input {
- Value = 776,
- Expression = "AutoDomain1.Output.DataWindow[3] - AutoDomain1.Output.DataWindow[1]",
- },
- YSize = Input {
- Value = 914,
- Expression = "AutoDomain1.Output.DataWindow[4] - AutoDomain1.Output.DataWindow[2]",
- },
- Input = Input {
- SourceOp = "AutoDomain1",
- Source = "Output",
- },
- ClippingMode = Input { Value = FuID { "None" }, }
- },
- ViewInfo = OperatorInfo { Pos = { 550, -82.5 } },
- },
- AutoDomain1 = AutoDomain {
- Inputs = {
- Input = Input {
- SourceOp = "Transform1",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 440, -82.5 } },
- },
- Transform1 = Transform {
- Inputs = {
- Size = Input { Expression = "math.min(1, CustomTool1.OutputWidth / self.Input.OriginalWidth, CustomTool1.OutputHeight / self.Input.OriginalHeight)", }
- },
- ViewInfo = OperatorInfo { Pos = { 330, -82.5 } },
- },
- Transform3 = Transform {
- Inputs = {
- Center = Input { Expression = ":\n\nimage = Crop2.Output;\nimageWidth = (Crop2.Output.DataWindow[3]-Crop2.Output.DataWindow[1])/Crop2.Output.Width;\nimageHeight = (Crop2.Output.DataWindow[4]-Crop2.Output.DataWindow[2])/Crop2.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.PositionHorizontal == 0 then\n x = 0.5 - left;\nend\n\nif CustomTool1.PositionHorizontal == 2 then\n x = 0.5 + right - imageWidth;\nend\n\nif CustomTool1.PositionVertical == 2 then\n y = 0.5 - top;\nend\n\nif CustomTool1.PositionVertical == 0 then\n y = 0.5 + bottom - imageHeight;\nend\n\nreturn Point(x, y);", },
- Input = Input {
- SourceOp = "Crop2",
- Source = "Output",
- }
- },
- ViewInfo = OperatorInfo { Pos = { 770, -82.5 } },
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment