Help Center

Wie kann ich: Brand Studio Vorlagen automatisieren?

  • Aktualisiert

    ~ minute read

Dieser Inhalt ist derzeit nur in Englisch verfügbar. Wir danken Ihnen für Ihr Verständnis.


Brand Studio streamlines templates by letting Template Designers preset options that Template Users can use to customize a template within your branding guidelines. This is achieved be setting Template Variables, which can be modified using Template Actions.


Define a Template Variable

In the Properties Panel, select the Automation tab, then click on "Variables". Find the "Variable List" and click the Plus button to generate a new variable. Hover over the variable to reveal the additional options, and click the Edit button to edit it.

Automation_01

The Settings tab will automatically be selected. Under "General", select the type of variable you want to use, and whether the variable is "required". You may also already define a "Default State", which is the value that will be assigned to the variable when the template is opened.

Variable Types:

  • Single-line Text - For a single line of text.
  • Multi-line Text - For multiple lines of text.
  • Image - For a reference to an image in the Media pool.
  • Single-select list - For a predefined list of values, only one of which may be selected.
  • Boolean - For "True" or "False" checks.
  • Number - For a numeric values.
  • Date - For a date value.

Depending on the type you choose, further options may become available, allowing you to further define the variable.

Automation_02

To change the variable's name, select the Settings2 tab. You can also provide a placeholder, and an explanation of the variable's purpose for the Template User.

Automation_03

Create a Template Action

Once you have created a Template Variable, you can use Template Actions to modify them.

In the Properties Panel, select the Automation tab, then click on "Actions". Click the Plus button to start creating a new action.

Automation_04

Add a trigger

Each must have at least one trigger, something that that will cause the action to happen. Click the "Add Trigger" button and select the type of trigger you want. After selecting your triggers, click the "Action" tab.

Trigger Types:

  • Selected layout changed - The chosen layout is changed.
  • Frame moved - When the X-coordinate, Y-coordinate, width, height, or rotation of a frame changes.
  • Page size changed - When the size of the page is changed. This can happen independently from layout changes.
  • Document loaded - When the document is loaded on the canvas.
  • Variable value changed - When the value of a variable is changed.
Automation_05

Add an action

Actions consist of custom JavaScript code, that is executed whenever a trigger event happens.

The editor uses the ES2020 Standard, with additional modifications to expose the Studio object –including documents, frames, and more – and added functions specific to Brand Studio.

To use the Studio object, simply type "studio." and the JavaScript editor will suggest objects that fit within the scope of what you are doing. Each object has properties and functions that are accessed by adding another "." and selecting from the suggestions. If you want more information on a specific object, property, or function, simply right-click the line in the editor and select from one of the "Peek" options.

Automation_06

Genie

If you are not comfortable writing JavaScript, you can still easily use actions by activating Genie, the Brand Studio AI companion.

Click the Genie button and describe to Genie what kind of action you want to happen, and Genie will create the necessary code for you, and also provide comments to help you understand it.

While Genie is powerful, it is limited within the framework of the Brand Studio, and you should always verify the provided code before using it.

Once you are done writing your code, click "Create" to add the action to the Template.

Automation_07

 

War dieser Beitrag hilfreich?

0 von 2 fanden dies hilfreich

Haben Sie Fragen? Anfrage einreichen