Mon Feb 26, 2024 1:42 pm
Hi Davy,
apologies for the late reply.
I'm new to macros and didn't know you can display them as code. When I did that, I checked out the RGB values and converted them back to HEX and they are correct. Is it maybe a rounding error?
Here's the code:
{
Tools = ordered() {
AnimatedCircle = MacroOperator {
Inputs = ordered() {
Input1 = InstanceInput {
SourceOp = "PolylineStroke1",
Source = "BrushShape",
},
Input2 = InstanceInput {
SourceOp = "PolylineStroke1",
Source = "CircleBrush.Size",
Name = "Brush Size",
Default = 0.02,
},
Input3 = InstanceInput {
SourceOp = "PolylineStroke1",
Source = "StrokeSize",
Name = "Stroke Size",
Default = 1,
},
Input4 = InstanceInput {
SourceOp = "Gradient",
Source = "GradientType",
},
Input5 = InstanceInput {
SourceOp = "Gradient",
Source = "Start",
DefaultX = 0.35,
DefaultY = 0.5,
},
Input6 = InstanceInput {
SourceOp = "Gradient",
Source = "End",
DefaultX = 0.65,
DefaultY = 0.5,
},
Input7 = InstanceInput {
SourceOp = "Gradient",
Source = "Gradient",
},
Input8 = InstanceInput {
SourceOp = "Merge1",
Source = "Angle",
Default = 0,
},
Input9 = InstanceInput {
SourceOp = "Transform1",
Source = "Center",
},
Input10 = InstanceInput {
SourceOp = "Transform1",
Source = "Pivot",
},
Input11 = InstanceInput {
SourceOp = "Transform1",
Source = "UseSizeAndAspect",
Default = 1,
},
Input12 = InstanceInput {
SourceOp = "Transform1",
Source = "Size",
Default = 1,
},
Input13 = InstanceInput {
SourceOp = "Transform1",
Source = "Aspect",
Default = 1,
},
Input14 = InstanceInput {
SourceOp = "Transform1",
Source = "XSize",
Default = 1,
},
Input15 = InstanceInput {
SourceOp = "Transform1",
Source = "YSize",
Default = 1,
},
},
Outputs = {
Output1 = InstanceOutput {
SourceOp = "Merge1Angle",
Source = "Value",
},
MainOutput1 = InstanceOutput {
SourceOp = "Transform1",
Source = "Output",
}
},
ViewInfo = GroupInfo { Pos = { 0, 0 } },
Tools = ordered() {
Alpha = Background {
NameSet = true,
Inputs = {
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
TopLeftAlpha = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 105.758, 69.7128 } },
},
Paint1 = Paint {
CtrlWZoom = false,
Inputs = {
Input = Input {
SourceOp = "Alpha",
Source = "Output",
},
Paint = Input {
SourceOp = "PolylineStroke1",
Source = "Out",
},
},
ViewInfo = OperatorInfo { Pos = { 212.447, 72.0155 } },
},
PolylineStroke1 = PolylineStroke {
Points = {
},
IsThreaded = false,
Brushes = { "CircleBrush" },
ApplyModes = { "PaintApplyColor" },
CtrlWZoom = false,
Inputs = {
BrushControls = Input { Value = 1, },
BrushShape = Input { Value = FuID { "CircleBrush" }, },
Polyline = Input {
Value = Polyline {
Closed = true,
Points = {
{ X = -0.122774480712166, Y = 0.00131926121372031, LX = 8.45442188872723e-18, LY = 0.122729944406843, RX = -8.45442188872723e-18, RY = -0.122729944406843 },
{ X = 0.00222551928783385, Y = -0.220902961008502, LX = -0.0690355937288492, LY = 2.25451250366059e-17, RX = 0.0690355937288492, RY = -2.25451250366059e-17 },
{ X = 0.127225519287834, Y = 0.00131926121372023, LX = -1.69088437774545e-17, LY = -0.122729944406843, RX = 1.69088437774545e-17, RY = 0.122729944406843 },
{ X = 0.00222551928783392, Y = 0.223541483435942, LX = 0.0690355937288492, LY = -3.75752083943432e-17, RX = -0.0690355937288492, RY = 3.75752083943432e-17 }
}
},
},
},
},
Gradient = Background {
NameSet = true,
Inputs = {
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Type = Input { Value = FuID { "Gradient" }, },
Start = Input { Value = { 0.35, 0.5 }, },
End = Input { Value = { 0.65, 0.5 }, },
Gradient = Input {
Value = Gradient {
Colors = {
[0.4] = { 0.647058823529412, 0.615686274509804, 0.584313725490196, 1 },
[0.6] = { 0.835294117647059, 0.168627450980392, 0.117647058823529, 1 }
}
},
},
},
ViewInfo = OperatorInfo { Pos = { 396.419, 5.30872 } },
},
Merge1 = Merge {
Inputs = {
Background = Input {
SourceOp = "Paint1",
Source = "Output",
},
Foreground = Input {
SourceOp = "Gradient",
Source = "Output",
},
Angle = Input {
SourceOp = "Merge1Angle",
Source = "Value",
},
Operator = Input { Value = FuID { "In" }, },
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 389.798, 73.9262 } },
},
Merge1Angle = BezierSpline {
SplineColor = { Red = 14, Green = 221, Blue = 144 },
CtrlWZoom = false,
NameSet = true,
KeyFrames = {
[0] = { 0, RH = { 600, -120 }, Flags = { Linear = true } },
[1800] = { -360, LH = { 1200, -240 }, Flags = { Linear = true } }
}
},
Transform1 = Transform {
Inputs = {
Input = Input {
SourceOp = "Merge1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 524.866, 73.9262 } },
}
},
}
},
ActiveTool = "AnimatedCircle"
}
Best,
Marie