Fusion:Template creation
From SpinetiX Support Wiki
Contents
Introduction
Creating a Fusion Template is very similar to creating a project, except that the Template requires to have a main SVG file called template.svg (instead of index.svg). Beside this file, a Template can also contain other SVG and media files.
To make a Template configurable, you can add options to the Template , which are editable elements that will be shown within the Fusion interface. This way, the user can create different Slides based on the same Template.
To use custom fonts inside your Template, create the Template inside a Style Pack and include the custom font inside the "fonts" collection of the Style Pack.
Sample templates can be downloaded from the Download Templates page.
Notes:
- When using multiple SVG files, it is recommended to have all the inner SVG files directly included by the template.svg, otherwise the Template preview upon Slide creation might not reflect the actual position of the layers.
- When creating a Slide, the Templates are usually listed under a tab named "Simple", except for the case where the name of the Template starts with one of the following strings:
- "multi_" -> the Template is listed under "Advanced" tab;
- "news_" -> the Template is listed under "RSS Feeds" tab;
- "others_" -> the Template is listed under "Others" tab;
Using Elementi X
Template creation
A Template can only be created inside the "templates" collection of a Style Pack.
To create a new Template , follow these steps:
- Open / create the Style Pack inside which you want to create the new Template.
- Go to "files" > "templates" collection.
- Right-click inside the Browse panel. (Or click on the "Menu" icon in the toolbar, then select "Projects" > "Fusion Elements".)
- Select the "New Template..." option. A pop-up window appears.
- Enter the name of the Template, the model of the target HMP, the format of the target screen and the duration of the Template.
- Click on the "OK" button. A new collection is created, containing a single file: template.svg.
- Open "template.svg" and create the Template layout.
- You can use multiple SVG files inside the Template to add more functionalities.
- Set the Template options (i.e. elements that can be editable within Fusion interface).
- Finally, archive the Template (see below) and upload it into Fusion.
- You can also archive the Style Pack and upload it into Fusion.
Template duration
When creating a slide based on a template, the slide inherits the template duration (configurable from the "Document Properties" dialog), and this might influence its duration within a program, as explained below.
But first, note that when adding a slide to a program, you can set a fixed duration for the slide within the program playlist to force playing it for that duration of time.
If you don't do that (i.e. you leave it on "automatic"), Fusion sets a minimum duration for the slide equal to the default duration set for the entire program. Then, depending on the duration set within the slide / template, the actual duration of the slide is computed as following:
- "Indefinite" or "Automatic" -> the slide is played forever, thus the program playlist will not advance past it (to overcome this, it is necessary to set a fixed duration for the slide within the program playlist).
- A fixed duration (e.g., 00:00:30, 00:05:00 etc.) -> if this is greater than the default duration set for the entire program, then the slide is played for the template duration, otherwise the slide is played for the default duration set for the entire program.
In that case, the slide will behave as if it would have a fixed duration in regards to the cases presented above.
Template archiving
To archive a Template, follow these steps:
- Right-click on the Template icon inside the Browse panel. (Or click on the "Menu" icon in the toolbar, then select "Projects".)
- Select the "Archive..." option.
- Select where the 7z archive file will be saved and set the name of the file.
- Click on the "Save" button.
Video tutorial
Using HMD Professional
Template creation
To create a Template using HMD Professional, follow these steps:
- Open My Fusion Elements workspace and decide where to create the Template.
- You can create a standalone Template or as part of a Style Pack (within the "templates" collection).
- Right click on the browsing panel and select the New Slide Template option.
- Set the name and the format of the Template.
- Press OK. (A new collection is created, containing a single file: skin.svg)
- Open template.svg and create the Template layout.
- You can use multiple SVG files inside the Template to add more functionalities.
- Set the Template options (i.e. elements that can be editable within Fusion interface).
- Finally, archive the Template (see below) and upload it into Fusion.
- If the Template is part of a Style Pack, then export the Style Pack and upload it into Fusion.
Template duration
When creating a template, special care should be taken regarding the duration of the template.svg file (the duration can be configured from the Properties view).
- Use a
dur = 'media'
, when you want the Slide duration will be equal to the duration of the media it contains (i.e. to end with the end of the last media it contains).- This is useful if you plan to use a video inside the Slide for instance. In this case it is recommended to uncheck the Repeat option of the video as well.
- Be aware, that if images are used in such templates, then the computed duration can be 0, as images have no duration. To solve this issue, it is recommended to add a minimum duration
min='1s'
to the <svg> element using the XML Tree View.
- Use a
dur = '10s'
, to use a default duration for the template. - Use a
dur = 'indefinite'
, to create a slide that will never end. In this case an explicit duration must be set when using this slide in a Program - Use custom JavaScript code in more complex setup, with multiple media.
Template archiving
To archive a Template, follow these steps:
- Open My Fusion Elements workspace and find the Template to archive.
- Right click on it and choose the "Update metadata" option. (To ensure that all the previews are generated before exporting the Template)
- Right click on it and choose the "Archive" option. (A new window will open)
- Select where the 7z archive file will be saved and set the name of the file.
- Press the "Save" button.
Example
To create a Template like the one presented on the right, follow these steps:
- Create a new Template (as explained above) and open it.
- Delete the existing text layer.
- In the browsing panel, create a collection called media, open it and import there a background image.
- Drag & drop the background image into preview panel. Right-click on it and make it full screen. Lock this layer.
- Insert a media layer, type [Fusion] as URI, enable the "Fusion editable" option, input a Fusion label (e.g., "media") and press the OK button. Move it to the left side and adjust its size.
- Insert a new text layer, move it to the right side, adjust its size and properties. Make sure to enable the "Fusion editable" option and to input a Fusion label (e.g., "Custom text").
- Save the changes.
- To use this Template: archive it, then upload it into Fusion and create a Slide with it.