Skip to main content
All CollectionsAudioEditing
How do I add a variable to a video?
How do I add a variable to a video?

Learn how to add variables to a video and convert it to a template.

Updated over a week ago

Variables allow you to create customizable videos at scale. This can be achieved through the API, but can also be done through Synthesia. To start using variables in your video you will need to save it as a template.

To add a variable to your script:

  1. Right-click in the script box to open the options menu.

  2. Select Variable.

  3. Provide a name for the variable.

  4. If necessary, set the default value.

To add a variable to a media asset:

  1. Select the media element on the canvas.

  2. Within the Inspector panel on the right hand side, click the three dots next to the media settings.

  3. Select Add Variable.

  4. Provide a name for the variable.

  5. The current media element will be the default value.

To create a variable for a text element:

  1. Add a text element to the canvas.

  2. Type the name of your variable and enclose with two curly brackets on either side.

  3. Add two curly brackets, the variable name, and close with two curly brackets:

    1. {{variable_name}}

  4. No default value can be set, so you will have to provide the variable value each time.

To save your video as a template:

  1. Select Generate in the top right-hand side.

  2. Add a Title and Description, if needed.

  3. Select Generate, and you will be prompted to convert your video to template.

  4. Select Convert.

  5. Click Publish template.

  6. You can find your template in the Template section of Library.


Notes:

  • Variables can be added to a script, images, videos, and text elements.

  • Any videos with variables require being converted into a template.

Did this answer your question?