Here's a small comp where a tool is called "Background" and it has an expression that refers to some other tool's "Background" input via the expression "Merge1.Background.OriginalWidth"
Now, if the Background tool is renamed to, say, "Mytool", the automatic renaming inside expressions gets a bit too greedy. It will rename the expression to "Merge1.Mytool.OriginalWidth".
- Code: Select all
{
Tools = ordered() {
Background = Background {
CtrlWZoom = false,
NameSet = true,
Inputs = {
GlobalIn = Input { Value = 1, },
GlobalOut = Input { Value = 200, },
Width = Input {
Value = 1280,
Expression = "Merge1.Background.OriginalWidth",
},
Height = Input {
Value = 720,
Expression = "Merge1.Background.OriginalHeight",
},
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
Gradient = Input {
Value = Gradient {
Colors = {
[0] = { 0, 0, 0, 1, },
[1] = { 1, 1, 1, 1, },
},
},
},
Comments = Input { Value = "rename me", },
},
ViewInfo = OperatorInfo { Pos = { 388, 133, }, },
},
Background1 = Background {
CtrlWZoom = false,
Inputs = {
GlobalIn = Input { Value = 1, },
GlobalOut = Input { Value = 200, },
Width = Input { Value = 1280, },
Height = Input { Value = 720, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2", }, },
Gradient = Input {
Value = Gradient {
Colors = {
[0] = { 0, 0, 0, 1, },
[1] = { 1, 1, 1, 1, },
},
},
},
},
ViewInfo = OperatorInfo { Pos = { 264, 136, }, },
},
Merge1 = Merge {
CtrlWZoom = false,
Inputs = {
Background = Input {
SourceOp = "Background1",
Source = "Output",
},
PerformDepthMerge = Input { Value = 0, },
},
ViewInfo = OperatorInfo { Pos = { 264, 249, }, },
},
},
}
Now, if the Background tool is renamed to, say, "Mytool", the automatic renaming inside expressions gets a bit too greedy. It will rename the expression to "Merge1.Mytool.OriginalWidth".
blog and Fusion stuff: http://comp-fu.com/2012/06/fusion-script-macro-collection/