User Manual

Table Of Contents
To create a new control:
1 In the Edit Control dialog, enter Center Blur in the Name field.
2 Select the New Control from the ID list.
3 Set the Type to Number, and set the Page to Controls.
4 Set the Input Ctrl to CheckboxControl.
5 Click OK.
To make this new checkbox affect the original Type menu, you’ll need to add a
SimpleExpression to the Type:
iif(TypeNew==0, 0, 2)
The “iif” operator is known as a conditional expression in Lua script. It evaluates something
based on a condition being true or false.
FusionScript
Scripting is an essential means of increasing productivity. Scripts can create new capabilities or
automate repetitive tasks, especially those specific to your projects and workflows. Inside
Fusion, scripts can rearrange nodes in a comp, manage caches, and generate multiple output
files for delivery. They can connect Fusion with other apps to log artist time, send emails, or
update webpages and databases.
FusionScript is the blanket term for the scripting environment in Fusion. It includes support for
Lua as well as Python 2 and 3 for some contexts. FusionScript also includes libraries to make
certain common tasks easier to do with Lua and Python within Fusion.
You can run interactive scripts in various situations. Common scripts include:
Utility Scripts, using the Fusion application context, are found under the File >
Scripts menu.
Comp Scripts, using the composition context, are found under the Script menu or
entered into the Console.
Tool Scripts, using the tool context, are found in the Tool’s context menu > Scripts.
Other script types are available as well, such as Startup Scripts, Scriptlibs, Bin Scripts, Event
Suites, Hotkey Scripts, Intool Scripts, and SimpleExpressions. Fusion Studio allows external and
command-line scripting as well and network rendering Job and Render node scripting.
FusionScript also forms the basis for Fuses and ViewShaders, which are special scripting-based
plug-ins for tools and viewers that can be used in both Fusion and Fusion Studio.
For more information about scripting, see the Fusion Scripting Documentation, accessible from
the Documentation submenu of the Help menu.
Chapter – 63 Using Modifiers, Expressions, and Custom Controls 1274