Jump to: Board index » General » Fusion

RGB Gradient Colour Code changes

Learn about 3D compositing, animation, broadcast design and VFX workflows.
  • Author
  • Message
Offline

MarieL

  • Posts: 2
  • Joined: Thu Feb 15, 2024 1:40 pm
  • Real Name: Marie Eissing

RGB Gradient Colour Code changes

PostThu Feb 15, 2024 2:10 pm

Hi everyone,

I want to create a Fusion macro with a gradient with specific colours (RGB/HEX Code) from a brand book. However, when I save the macro and use it, the RGB values have slightly changed.
The same happens, when I close my project and reopen the fusion composition with the nodes that go into the macro.

Just to be sure I am clear.
Let's say, I want to save a gradient with RGB values, e.g. 10/10/10 and 140/283/10 when I save the project, reopen it and check the gradient colours they are set to 10/11/11 and 140/282/10.
Since these are supposed to be brand colours it's inconvenient to have to check them every time I use the macro.

It does not seem to happen when I use a Four Colour Gradient in the edit page.

I appreciate any hints what I can do.

Cheers
Marie
Offline

DavySilva

  • Posts: 183
  • Joined: Thu Mar 03, 2022 12:36 pm
  • Location: UK and Ireland, sometimes EU.
  • Real Name: Davy Silva

Re: RGB Gradient Colour Code changes

PostWed Feb 21, 2024 3:04 pm

Hi Marie,

More than happy to check it for you. Do you mind copy and paste your macro here?
Online Editor and Colourist.
“Never stop learning because life never stops teaching”
Offline

MarieL

  • Posts: 2
  • Joined: Thu Feb 15, 2024 1:40 pm
  • Real Name: Marie Eissing

Re: RGB Gradient Colour Code changes

PostMon 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
Offline

DavySilva

  • Posts: 183
  • Joined: Thu Mar 03, 2022 12:36 pm
  • Location: UK and Ireland, sometimes EU.
  • Real Name: Davy Silva

Re: RGB Gradient Colour Code changes

PostWed Feb 28, 2024 7:22 am

Hi Marie,

No problem,

I haven't yet opened your script into Fusion to check it. Are you happy with your colours now?
Online Editor and Colourist.
“Never stop learning because life never stops teaching”

Return to Fusion

Who is online

Users browsing this forum: TripleZeroFilms and 36 guests