You can edit templates in the same way as other macro page elements.
Procedure
- Select a template in the Templates Tree.
-
Click Edit Element on the toolbar or select Edit from the context menu.
The GUI Tree opens and shows the template structure. The canvas displays the content of the template.
-
Optional: Make adjustments to the parameters in the Properties section.
Property
Description
Name
Allows you to enter or change the name of the template.
Scope
Allows you to specify the path to a specific program element, to assign the template to it. In most cases, we recommend not setting this parameter, so that the template remains generic and can be used to control different elements. However, activating the Scope property for a template can be useful when building an EQ editor template that combines all EQ controls, for example. In this case, the values of the controls can be set exclusively for the parameter IDs, and the remaining path to the EQ module can be used as the scope.
Drag Info
Allows you to enter an initial value that can be forwarded to a script callback when used in a template list.
Size
Determines the width and the height of the template.
Template Parameter
Lists all exported parameters of the included controls and sub-templates.
Script
This section allows you to assign a UI script to the template.
-
Load Script allows you to load an existing script.
-
Save Embedded Script as File allows you to save an embedded script in an external file. Once the file is saved, the path field refers to this file.
-
Edit Script allows you to edit the script. Embedded scripts use a simple internal text editor. External script files can also use an external editor, as specified in the Scripting section of the Options editor.
-
The Script File Path text field displays the file name and the location of the associated script. If an embedded script is used, the field displays “Embedded Script”.
-
Reload Script allows you to reload a script after editing it in an external editor.
Script parameters
Parameters that are defined by the UI script are displayed in the lower part of the Script section.
The Export column allows you to export a script parameter to the template level.
The Parameter column shows the names of the parameters, as defined in the script.
The Value column shows the values of the parameters.
The Connection column allows you to create a connection to a HALion engine parameter, for example, via drag and drop from the Parameter List. Creating a connection allows you to send UI script output values to control HALion parameters.
-
- Optional: Drag elements from the Resource/Library Browser and arrange them on the canvas.
- Click Switch Back to Macro Page/Parent Template to return to the macro page.
Result
Your modifications are now visible in all places where the template is used on the macro page.