- Posts: 36
- Joined: Sun Sep 23, 2018 2:13 pm
- Real Name: Brian Lynn
I re-created a simple noise tool with the custom tool and with this setup it now creates a seamless loop every 100 frames (so frame 0 looks the same as 100, same as 200 etc). You can change the settings via the Controls page, and for the looping, especially n7 (Looping Threshold) is important.
This is certainly not perfect, and I can't right now check how it compares to AE, but maybe it can serve as a starting point? Also, right now it doesn't cater for things like complexity etc, but I may have a little play to make it somewhat more usable.
- Code: Select all
{
Tools = ordered() {
Background1 = Background {
Inputs = {
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
},
ViewInfo = OperatorInfo { Pos = { 477, 210 } },
},
CustomTool1 = Custom {
CtrlWZoom = false,
Inputs = {
NumberIn1 = Input { Value = 5.865, },
NumberIn2 = Input { Value = 2.808, },
NumberIn3 = Input { Value = 6.319, },
NumberIn4 = Input { Value = -0.557, },
NumberIn5 = Input { Value = -0.035, },
NumberIn6 = Input { Expression = "(time/100)%1", },
NumberIn7 = Input { Value = 0.6, },
LUTIn1 = Input {
SourceOp = "CustomTool1LUTIn1",
Source = "Value",
},
LUTIn2 = Input {
SourceOp = "CustomTool1LUTIn2",
Source = "Value",
},
LUTIn3 = Input {
SourceOp = "CustomTool1LUTIn3",
Source = "Value",
},
LUTIn4 = Input {
SourceOp = "CustomTool1LUTIn4",
Source = "Value",
},
Intermediate1 = Input { Value = "noise3((n4+x)*n1,(n5+y)*n2,n6)*n3", },
Intermediate2 = Input { Value = "noise3((n4+x)*n1,(n5+y)*n2,0)*n3", },
Intermediate3 = Input { Value = "(n6-n7)/(1-n7)", },
Intermediate4 = Input { Value = "if(n6>n7, (i3*i2)+((1-i3)*i1),i1)", },
RedExpression = Input { Value = "i4", },
GreenExpression = Input { Value = "i4", },
BlueExpression = Input { Value = "i4", },
AlphaExpression = Input { Value = "i4", },
NumberControls = Input { Value = 1, },
NameforNumber1 = Input { Value = "X scale", },
NameforNumber2 = Input { Value = "Y scale", },
NameforNumber3 = Input { Value = "Brightness", },
NameforNumber4 = Input { Value = "X offset", },
NameforNumber5 = Input { Value = "Y offset", },
NameforNumber7 = Input { Value = "Looping Threshold", },
Image1 = Input {
SourceOp = "Background1",
Source = "Output",
},
},
ViewInfo = OperatorInfo { Pos = { 587, 210 } },
},
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 = 204, Green = 0, Blue = 0 },
NameSet = true,
},
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 = 204, Blue = 0 },
NameSet = true,
},
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 = 204 },
NameSet = true,
},
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 = 204, Green = 204, Blue = 204 },
NameSet = true,
}
}
}