When you put an expression on the Styled Text field, the default code is Text(""). You can simply put time in there, removing the quotation marks, and you'll get the current frame number. tostring() works as well, as you've found, but it's not as obvious as using the built-in hint.
Here's an example:
- Code: Select all
{
Tools = ordered() {
Text1 = TextPlus {
CtrlWZoom = false,
Inputs = {
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
Size = Input { Value = 0.0319148936170213, },
Font = Input { Value = "Open Sans", },
StyledText = Input {
Value = "Current frame: 0",
Expression = "Text(\"Current frame: \" .. time)",
},
Style = Input { Value = "Bold", },
ManualFontKerningPlacement = Input {
Value = StyledText {
Array = {
},
Value = ""
},
},
ShadingGradient1 = Input {
Value = Gradient {
Colors = {
[0] = { 0, 0, 0, 1 },
[1] = { 1, 1, 1, 1 }
}
},
},
},
ViewInfo = OperatorInfo { Pos = { 427, 60 } },
}
},
ActiveTool = "Text1"
}
The information on the old VFXPedia is pretty useful:
https://www.steakunderwater.com/VFXPedi ... xpressionsThere are also some bits and pieces scattered throughout the official manuals. I have found the entry on the Custom Tool in the Fusion Tool Reference document to be very helpful.
And, of course, the Lua documentation can help you to figure out quite a bit if you need more advanced behavior.