Skip to main content

Variables and render templates

Turn a composition into a reusable template by replacing changing content with variables.

When to use it​

Use a template when the layout stays the same but each output needs different text, images, products, or scene selections. A variable has a name and default value; a placeholder inserts that value into the composition.

Before you begin​

Start with a composition that already works using ordinary text and media. Keep a saved project draft so you can continue editing it. You can define variables locally; saving an account template requires signing in.

ItemPurposeWhat saving does
Project draftContinue editing a composition.Save updates the linked draft.
VariableSupply changing content or settings.Its default lives with the project or template.
Render templateReuse a validated composition through the API or integrations.Save as template creates a new template record and identifier.
Saved Design Studio designReuse a layered graphic inside a composition.Stored under Design → Your designs, separately from render templates.

How to define and use a variable​

Click Variables in the tool rail on the left.

  1. Enter a name in variableName.
  2. Choose string, number, boolean, array, or object, then click Add.
  3. Enter a realistic default value. For arrays and objects, enter valid JSON and use format to format and apply it.
  4. Click the variable's placeholder to copy it.
  5. Paste it into a supported field, or click the purple curly-brace button ({}) beside the field to open its variable insertion menu.
  6. Enable the preview checkbox beside the Template variables heading to show the resolved value on the stage.
Mobile and narrow screens

Scroll the tool rail along the bottom of the editor to find Variables. Its panel opens as a bottom sheet; tap Done at the upper right to return to the stage. Undo is in the top toolbar's vertical three-dot More actions menu.

Desktop Variables panel with preview checked beside the heading, title and tagline defaults, T-shaped rename and trash icons on each row, and the resolved Northstar Coffee title on the stage.

For example, define a string named title and insert {{title}} into text. Object values can use dot paths such as {{product.name}}. A placeholder used alone can retain its value type; a placeholder inside a longer sentence becomes text.

Choose a variable type​

TypeSuitable forInitial value when addedUseful default
stringTitles, descriptions, colors, or media URLs.Empty text.Northstar Coffee
numberNumeric settings such as duration or size.06 for an intended six-second duration.
booleanShowing or skipping optional content.truetrue for showOffer.
arrayA list to repeat a scene over.[]A nonempty list of products.
objectRelated values accessed with dot paths.{}An object with name and tagline.

Names start with a letter and contain only letters, numbers, and underscores. Choose a unique name; item and index are reserved for repeating scenes. Placeholder expressions support names and dot paths, not calculations or arbitrary JavaScript.

Array and object fields accept JSON. Valid edits apply after a short delay; format applies and formats the valid value. An invalid draft displays an error and keeps the last valid value, so fix the error before previewing or saving.

Use the purple curly-brace button ({}) beside a field to open its variable insertion menu where available. Text, HTML, media sources, numeric controls that accept variables, colors, and template conditions have different expected value types. A standalone numeric placeholder can supply a number; text such as Duration: followed by a placeholder becomes a string and is unsuitable for a numeric setting.

Preview variable values​

Enable preview in Variables to inspect the composition with its current defaults. The project keeps the raw placeholders when preview is enabled. Replacing a bound field with a literal value removes that field's placeholder.

Check both a short and a long title, a populated and empty list, and both values of each boolean. For a Design Studio composition, use its variable values toggle when present. Turn preview off to inspect the raw bindings again; this does not delete their defaults.

How to rename or delete variables​

  1. In Variables, inspect the usage count beside the variable.
  2. Click the T-shaped icon at the right of the variable's top row (Rename), enter the new name, and press Enter.
  3. Update any placeholders that still use the previous name. Renaming the declaration does not automatically rewrite those references.
  4. To remove a variable, click the trash icon at the far right of that row (Delete variable). If it is still referenced, click again to confirm.

Deleting a referenced variable leaves unresolved placeholders until you remove or replace them. Review Problems after either action. For an undefined variable, click define and supply a safe default.

How to repeat a scene for each array item​

  1. Add an array variable containing the items to render.
  2. Open Scenes and select the scene to repeat.
  3. In Scene settings → Repeat for each item (iterate), select the array variable.
  4. Set Item alias if you want a name other than item.
  5. Use placeholders such as {{item.title}} for an item's fields and {{index}} for its position.
  6. Review the repeat count on the scene card, enable Variables → preview, then preview the full movie.

With variable preview enabled, the scene editing view previews the first array item and the full-movie preview expands the sequence using current defaults.

An empty array produces no copies. Keep the alias consistent with the placeholders inside that scene; changing Item alias requires updating those placeholders. Choose off under Repeat for each item (iterate) to stop repeating the scene.

How to show or hide content conditionally​

  1. Define a boolean variable with a safe default.
  2. For a scene, open Scenes → Scene settings → Condition.
  3. Click a visual element on the canvas to open its settings. In a video project, open Timing → Template → Condition. In an image project, the Template section is under Design.
  4. Insert the variable placeholder.
  5. Check the on, off, or ? state indicator and resolve any missing variable.

A condition resolving to false, zero, or an empty value removes that content from the render. With Variables → preview enabled, editing views dim conditionally hidden visuals and keep them selectable. A dimmed element is not proof that it will appear in the output.

  • For a video with scenes, select Scenes → Global overlays → full movie to inspect the resolved sequence with hidden content removed.
  • For a video without scenes or an image project, there is no full movie control. Check the condition's on/off indicator with both boolean values, then render and inspect the finished media to verify the final composition. Rendering creates a paid job; restore the defaults you intend to use before submitting it.

Use a boolean default for a clear on/off switch rather than the text "false". Clear the Condition field to remove the condition. A ? indicator means it could not resolve, so fix the binding before relying on the preview.

How to save a render template​

  1. Sign in and finish defining defaults for every placeholder.
  2. Click the round account avatar with your initials at the far upper right, then Save as template.
  3. In Save as render template, enter Template name and an optional Description.
  4. Review the variable summary and resolve any missing-default warning.
  5. Click Save template.
  6. Copy the displayed template identifier, or follow your dashboard to manage it. Click Done to close the dialog.

The editor's Save as template creates a new template record. It is separate from Save, which updates a linked project draft. Saving a template validates the composition against your plan; saving a draft does not make it render-ready.

Close or cancel the dialog before saving to leave the account unchanged. After success, Done closes the confirmation; it does not undo the saved template. Use the dashboard to manage existing templates. Creating a template does not start a paid media render.

Example: a reusable Northstar Coffee promotion​

  1. Add the string variable title with the default Northstar Coffee and tagline with Freshly roasted. Ready for your morning.
  2. Replace the corresponding text elements with {{title}} and {{tagline}}.
  3. Add the boolean showOffer, leave it true, and use {{showOffer}} as the description element's Condition.
  4. Turn preview on. Verify the readable text appears while the raw fields retain their placeholders.
  5. Set showOffer to false and check that its condition indicator changes to off. Editing views can retain the element for selection; restore true as the default you want customers to see.
  6. Save a draft, then choose Save as template, name it Northstar Coffee promotion, and save. Record the returned identifier for your integration.

To build a product sequence, add an array named products with this value, then choose it in the scene's Repeat for each item (iterate) menu:

[
{ "name": "Morning Blend", "tagline": "A smooth start to your day" },
{ "name": "Dark Roast", "tagline": "Rich flavor for slow mornings" }
]

Inside that scene, use {{item.name}} and {{item.tagline}}. full movie should contain two copies with different text. Recheck duration and the render estimate after changing the number of products.

Troubleshooting​

A placeholder is rejected or the template will not save​

Cause: A referenced variable is missing, an expression is unsupported, JSON is invalid, or the composition fails a plan or payload check.

Solution: Open Variables → Problems, define missing defaults, and fix invalid JSON or references. Use simple names or dot paths rather than arbitrary expressions. Retry Save template and use the field details shown in its error message to correct remaining issues.

Changing a JSON default does not change the preview​

Cause: The edited JSON is invalid, so the editor retained the last valid value, or variable preview is off.

Solution: Resolve the error beneath the field, click format, and enable preview. Confirm the object contains every nested key used by the composition.

A renamed variable is now reported as missing​

Cause: Renaming changes the declaration but leaves existing placeholders unchanged.

Solution: Replace each old placeholder, including scene conditions, repeat bindings, and Design Studio layers. Use the curved left arrow in the desktop's top toolbar (Undo) if you want to reverse the rename instead.

Saving creates another template instead of updating one​

Cause: Save as template always creates a new template record.

Solution: Use the returned identifier for the new template, and manage existing records from the dashboard. Use ordinary Save to keep editing a linked project draft.

What happens next​

Use the template identifier with the API or integrations and supply per-render variable values. Creating the template does not render a video. A local preview shows values on the stage; the API's free template preview returns resolved JSON.