Fusion Scripting Demo
This is a demo of what’s possible with expressions/scripting in Fusion. The script is written in Lua, which is a simple scripting language that is similar to Python.
The 3D effect was done in Fusion with the DVE
node.
Try it yourself
You can copy the following code, paste it into a new file with a .setting
extension, and drag and drop it into Fusion to use.
{
Tools = ordered() {
Text1_1 = TextPlus {
CtrlWZoom = false,
CustomData = {
Path = {
Map = {
["Setting:"] = "C:\\Users\\Username\\Documents\\"
}
},
},
Inputs = {
GlobalOut = Input { Value = 149, },
Width = Input { Value = 1920, },
Height = Input { Value = 1080, },
UseFrameFormatSettings = Input { Value = 1, },
["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
LayoutRotation = Input { Value = 1, },
TransformRotation = Input { Value = 1, },
Softness1 = Input { Value = 1, },
StyledText = Input { Expression = ":result = \"\"\n for i = StartingNumber, EndingNumber, IncrementBy do\n spaces = \"\"\n\n for s = 1, Spacing do\n spaces = spaces .. \" \"\n end\n\n result = result .. i .. spaces\nend\n\nreturn result", },
Font = Input { Value = "Open Sans", },
Style = Input { Value = "Bold", },
VerticalJustificationNew = Input { Value = 3, },
HorizontalJustificationNew = Input { Value = 3, },
IncrementBy = Input { Value = 10, },
Spacing = Input { Value = 5, },
},
ViewInfo = OperatorInfo { Pos = { 165, 16.5 } },
UserControls = ordered() { StartingNumber = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "ScrewControl", INP_MaxScale = 200, INP_Default = 1, INP_MinScale = 1, INP_MinAllowed = -1000000, LINKID_DataType = "Number", LINKS_Name = "Starting Number", }, EndingNumber = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "ScrewControl", INP_MaxScale = 200, INP_Default = 20, INP_MinScale = 1, INP_MinAllowed = -1000000, LINKID_DataType = "Number", LINKS_Name = "Ending Number", }, IncrementBy = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "ScrewControl", INP_MaxScale = 20, INP_Default = 1, INP_MinScale = 1, INP_MinAllowed = -1000000, LINKID_DataType = "Number", LINKS_Name = "Increment By", }, Spacing = { INP_MaxAllowed = 1000000, INP_Integer = true, INPID_InputControl = "ScrewControl", INP_MaxScale = 20, INP_Default = 1, INP_MinScale = 1, INP_MinAllowed = -1000000, LINKID_DataType = "Number", LINKS_Name = "Spacing", } }
}
},
ActiveTool = "Text1_1"
}