Skip to content

Automation

Make layers respond to time and data, from the automate menu and the style pages.

Automation makes a layer respond to time and data: a hand that turns, a bar that grows with your steps, a layer that only shows at night. Each automated property gets an expression, a small formula that works out its value from the time and data. Automation is available in dynamic elements and complications.

There are three places to automate:

  • The automate menu, for a layer’s position, size, rotation and visibility (below).
  • The style pages: a style setting that can be automated has an automate button next to it, for example a color or an arc’s angles.
  • The global object, from the button at the end of the readout above the canvas: variables and functions that every layer of the element can use, so you write a calculation once.

An automated layer shows an automation icon in the layer list, which turns into a warning when one of its expressions fails. To see the automation run, tap Play in the app bar; to try other values (another time, a low battery), use the Simulator in the More menu.

Select a layer, then tap the automate button in the tools row:

The tools row, with the automate button markedThe tools row, with the automate button marked

The menu highlights the properties that are already automated. Each one opens the expression editor, where you write the expression that drives it.

The layer automation menu: rotation, horizontal and vertical scale, scale, move horizontally and vertically, visibility and tapThe layer automation menu: rotation, horizontal and vertical scale, scale, move horizontally and vertically, visibility and tap
  • Rotation

    Turns the layer, for hands, dials and anything that spins.

    Opens Automate ….

  • Scale X

    Stretches the layer sideways, for a bar that grows from left to right.

    Opens Automate ….

  • Scale Y

    Stretches the layer up and down.

    Opens Automate ….

  • Scale

    Scales the layer in both directions at once. A layer can’t combine it with the sideways or up and down scale.

    Opens Automate ….

  • Move X

    Moves the layer left and right.

    Opens Automate ….

  • Move Y

    Moves the layer up and down.

    Opens Automate ….

  • Visibility

    Shows or hides the layer, for example only while the battery is low.

    Opens Automate ….

  • Tap

    Picks the layer’s tap action with an expression.

    Only for watch faces in the original Pujie format, not for Wear OS 6 watch faces.

    Opens Automate ….

An expression works out a property’s value from data tags: [m] * 6 turns a layer with the minutes, [bat_w] < 20 shows it only while the battery is low. The expression editor page explains what an expression can contain and what each property expects, and Data tags lists all the data you can use.