Eyeon:Script/Reference/Applications/Fusion/Console

From VFXPedia

Jump to: navigation, search

Introduction

The console display shows error messages from Fusion and tools in your composition, as well as statistics from the last render. The console display can also be used for immediate mode scripting, and to display the output from any interactive script run from within fusion. Commands entered into the full width text box at the bottom will be executed immediately after you press enter. The output from your command (if any) will be printed to the console view.

This immediate mode for interactive scripting is useful when diagnosing troublesome scripts, and for testing new ideas or functions out during script development.

Commands entered in the console will operate within the current Composition context, the same environment that Composition scripts run in. This means that the 'fusion' and 'composition' variables are pre-initialized, as described in the documentation for Composition Scripts.

You can enter more than one command into a console script, if you separate each line with a semi-colon character (;). The total length of the line cannot exceed 190 characters. The command is usually printed in the console window, just above the output from your command. You can disable echo of your commands in this view by deselecting the Show Input Messages button in the Filter toolbar (the button labeled with a character).

There are two function shortcuts available for use with commands run in the console. The equals sign (=) is a shortcut for the print() function, and two equal signs (==) are a shortcut for the dump() function.

For example, to dump a list of current attributes for the composition, type '==composition:GetAttrs()' in the immediate script box. To print the value of the Loader1.Filename at the current time type '=Loader1.Filename[composition.CurrentTime]' in the immediate scriptbox.


Tips for Console (edit)

  • The Composition object's methods and members are available in the console. This means that you can simply type ==CurrentTime or AddTool("Blur") without the need to prefix the command with comp.