- Posts: 461
- Joined: Mon May 13, 2019 10:38 pm
- Location: Minneapolis, MN
- Real Name: Ben Hall
I've updated the macro so that it's faster and very straight forward.
Updated Grid Macro:
Uses the sRender setup
Simplified Interface
-Color
-Width and Height
-Line Width
-Number of Cells
-Scale of Cells for Extra Control
Updated Grid Macro:
Uses the sRender setup
Simplified Interface
-Color
-Width and Height
-Line Width
-Number of Cells
-Scale of Cells for Extra Control
- Code: Select all
{
Tools = ordered() {
simpleGrid_BH = MacroOperator {
CtrlWZoom = false,
CustomData = {
Path = {
Map = {
["Setting:"] = "Macros:\\"
}
},
},
Inputs = ordered() {
Input1 = InstanceInput {
SourceOp = "xLine_1",
Source = "Red",
Name = "Color",
ControlGroup = 1,
Default = 1,
},
Input2 = InstanceInput {
SourceOp = "xLine_1",
Source = "Green",
ControlGroup = 1,
Default = 1,
},
Input3 = InstanceInput {
SourceOp = "xLine_1",
Source = "Blue",
ControlGroup = 1,
Default = 1,
},
Input4 = InstanceInput {
SourceOp = "xLine_1",
Source = "Alpha",
ControlGroup = 1,
Default = 1,
},
Input5 = InstanceInput {
SourceOp = "sRender1_1",
Source = "Width",
Default = 1920,
},
Input6 = InstanceInput {
SourceOp = "sRender1_1",
Source = "Height",
Default = 1080,
},
Input7 = InstanceInput {
SourceOp = "sRender1_1",
Source = "UseFrameFormatSettings",
Default = 0,
},
Input8 = InstanceInput {
SourceOp = "GridSettings_1",
Source = "NumberIn1",
MaxScale = 5,
Default = 0.375,
},
Input9 = InstanceInput {
SourceOp = "GridSettings_1",
Source = "NumberIn2",
MaxScale = 50,
Default = 21,
},
Input10 = InstanceInput {
SourceOp = "GridSettings_1",
Source = "NumberIn3",
Default = 1,
}
},
Outputs = {
MainOutput1 = InstanceOutput {
SourceOp = "GridSettings_1",
Source = "Output",
}
},
ViewInfo = GroupInfo { Pos = { 1705, 577.5 } },
Tools = ordered() {
xLine_1 = sRectangle {
CtrlWZoom = false,
CtrlWShown = false,
NameSet = true,
Inputs = {
Width = Input {
Value = 0.0005,
Expression = "GridSettings_1.NumberIn1*.002",
},
Height = Input { Value = 1, },
},
ViewInfo = OperatorInfo { Pos = { -55, 8.75757 } },
},
sGrid1_1 = sGrid {
CtrlWShown = false,
Inputs = {
CellsX = Input {
Value = 31,
Expression = "math.ceil(GridSettings_1.NumberIn2)",
},
CellsY = Input {
Value = 30,
Expression = "CellsX",
},
XOffset = Input {
Value = 0.0771,
Expression = "GridSettings_1.NumberIn3*0.1",
},
YOffset = Input {
Value = 0.0341,
Expression = "XOffset",
},
Input = Input {
SourceOp = "sMerge1_1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { -55, 140.758 } },
},
sMerge1_1 = sMerge {
CtrlWShown = false,
Inputs = {
Input1 = Input {
SourceOp = "xLine_1",
Source = "Output",
},
Input2 = Input {
SourceOp = "yLine_1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { -55, 74.7576 } },
},
sRender1_1 = sRender {
CtrlWShown = false,
Inputs = {
GlobalOut = Input { Value = 188, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Input = Input {
SourceOp = "sGrid1_1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { -55, 206.758 } },
},
GridSettings_1 = Custom {
CtrlWZoom = false,
CtrlWShown = false,
NameSet = true,
Inputs = {
NumberIn1 = Input { Value = 0.375, },
NumberIn2 = Input { Value = 21, },
NumberIn3 = Input { Value = 1, },
LUTIn1 = Input {
SourceOp = "GridSettingsLUTIn1_1",
Source = "Value",
},
LUTIn2 = Input {
SourceOp = "GridSettingsLUTIn2_1",
Source = "Value",
},
LUTIn3 = Input {
SourceOp = "GridSettingsLUTIn3_1",
Source = "Value",
},
LUTIn4 = Input {
SourceOp = "GridSettingsLUTIn4_1",
Source = "Value",
},
NameforNumber1 = Input { Value = "Line Width", },
NameforNumber2 = Input { Value = "Grid Cells", },
NameforNumber3 = Input { Value = "Grid Cell Scale", },
PointControls = Input { Value = 1, },
Image1 = Input {
SourceOp = "sRender1_1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { -55, 272.758 } },
},
GridSettingsLUTIn1_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 = 204, Green = 0, Blue = 0 },
CtrlWZoom = false,
},
GridSettingsLUTIn2_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 = 204, Blue = 0 },
CtrlWZoom = false,
},
GridSettingsLUTIn3_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 = 204 },
CtrlWZoom = false,
},
GridSettingsLUTIn4_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 = 204, Green = 204, Blue = 204 },
CtrlWZoom = false,
},
yLine_1 = sRectangle {
CtrlWShown = false,
NameSet = true,
Inputs = {
Width = Input { Value = 1, },
Height = Input { Expression = "xLine_1.Width", },
Red = Input { Expression = "xLine_1.Red", },
Green = Input { Expression = "xLine_1.Green", },
Blue = Input { Expression = "xLine_1.Blue", },
Alpha = Input { Expression = "xLine_1.Alpha", },
},
ViewInfo = OperatorInfo { Pos = { 55, 74.7576 } },
}
},
}
},
ActiveTool = "simpleGrid_BH"
}
Resolve & Fusion Studio 18.6.5
Windows 10
Intel Xeon CPU 2699A @ 2.40GHz | 128GB RAM | 2xRTX3090 | 512NVME System | 8TB NMVE Scratch | 80TB 8Gbps Fiber
MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch
Windows 10
Intel Xeon CPU 2699A @ 2.40GHz | 128GB RAM | 2xRTX3090 | 512NVME System | 8TB NMVE Scratch | 80TB 8Gbps Fiber
MacOS 12.7.2
MacBook Pro 13,3 | 16GB | Radeon 460 4GB | 256GB System | 256GB Scratch