The 'Script' Panel contains all the Events and Actions for the currently selected Scene or object.
The top section of the panel displays the 'Script' tree. The 'Script' tree section of the panel can be used to select a specific event or action. The bottom section of the panel displays the 'Script Command Properties' of the currently selected event or action.
The exact layout of the bottom section will depend on the function/command that has been selected. In the example below, the bottom section of the Panel shows the properties of the currently selected Goto Frame Action.
The first section of the 'Script' tree contains the available Events as below:
The 'Define function(...)' option is also displayed in this section, which is used to create User Defined Functions.
The second section of the 'Script' tree contains the available Actions.
Delete Script
You can delete Events and Actions by selecting them in the 'Script' tree and then clicking on the 'Delete' button. If you delete an Event, its associated Actions will also be deleted. Similarly, if you delete a If Frame Loaded Action, its child Actions will also be deleted.
Up/Down
You can change the order of Events and Actions using the 'Up' and 'Down' arrow buttons. However, changing Event order has little practical use.
Script tree
This shows the Events and Actions for the currently selected Scene or object. Events are shown at the root of the tree, and Actions are shown as children of Events.
Current Script label bar
This bar show the currently selected Event or Action. The properties of the Event or Action appear below this bar.
Guided/Expert
Allows you to select an a 'Script' Panel view mode. In Guided mode all scripts are added through the 'Script' tree and the script properties provided. In Expert mode scripts can be typed directly into the 'Script' Panel. The 'Script' tree can still be used, but script properties need to be typed in manually.
Note: There is a draggable splitter between the 'Script' tree and the script properties section below allowing you to resize the panel as needed.
Expressions (Script Command Properties section). Most actions and event functions accept parameters. In some cases string parameters are expected,
eg."frame_1".
The (e) button can be used to enter a formula that results in the creation of the appropriate string. Once the (e) button is selected for a field:
·
Expressions can be entered
·
The field will be displayed in brackets
·
The script entered will be display in a blue font
Right-clicking the field will display the Script Syntax menu
eg. If the variable fr contains 1, then the expression ("frame_" add fr) would evaluate to "frame_1" which would then be used as the action parameter.