Design overlay expressions

Format live match data, control layer visibility, and repeat list layouts in custom design overlays.

Design overlay expressions let you format live match data, swap logos and colours, hide or show layers by match state, and repeat a group for every map, veto step, or schedule row. You write expressions directly in the design editor without JavaScript or custom HTML.

Where expressions work

You can bind expressions to five layer properties in the design editor. Every expression reads from Strave's typed broadcast catalog and updates as soon as Stream Manager or match data changes. Stats update every 10 to 20 seconds.

  • Code layer: select the </> button in the toolbar at the bottom of the canvas. It adds a text layer with an example expression. Change it in Properties → Text.
  • Any text layer: Properties → Text accepts plain text and { ... } blocks.
  • Visible when, colours, and images: select a layer and open Properties → Rules from data.
  • Repeat groups: select a group and open Properties → Repeat.

The fields are small code editors:

  • Colours: data paths, functions, text, numbers, and keywords each have their own colour.
  • Completion: the list of data paths and functions opens as you type, and after ., |, {, (, or ,. Press Ctrl+Space to open it anywhere. Use the arrow keys, then Enter or Tab. A function comes with its brackets.
  • Problems: an unknown name, an unknown function, or a type error gets a wavy underline, and its message shows at the end of that line, often with a "Did you mean" fix.
  • Help: point at a function to see its signature, or at a data path to see its type.
  • More room: drag the lower edge of a field to make it taller, or click the expand button under it to open the code view. The code view fills the screen and shows line numbers, the value with the current preview data, and every problem with its line and column.

Below each field, the editor shows the number of problems, or the value with the current preview data.

Layer propertyHow you write itExpected result
Text layerMix plain text and { ... } blocksText, number, or boolean
Image layerBare expression (no { } braces)Image URL
Colour (text fill, shape fill, stroke)Bare expression (no { } braces)Colour
Layer visibility (Visible when)Bare expression (no { } braces)Boolean (true shows the layer)
Repeat group (Repeat source)Bare expression (no { } braces)List

In a text layer, wrap each expression in { and }:

{match.teams.a.name | upper} {match.teams.a.score} - {match.teams.b.score} {match.teams.b.name | upper}

To show a literal curly brace in a text layer, double it: {{ renders as { and }} renders as }.

Every legacy broadcast token still works unchanged. Existing templates such as {team.a.name}, {match.score}, {team.a.score}, and {map.name} act as aliases for the new typed paths.

Values, pipes, and missing data

Expressions work with seven value types: text, number, boolean, image, colour, list, and null. The editor checks every expression against these types as you type, so you can't accidentally put a team name into a logo slot or add a number to text without converting it.

Transform values with pipes

Use the pipe operator (|) to pass a value left to right through functions. Pipes keep formatting chains easy to read inside narrow editor inputs:

{match.teams.a.name | trim | upper | truncate(14)}

You can also call any function in standard prefix form:

{truncate(upper(trim(match.teams.a.name)), 14)}

When a function takes only the piped value, omit the parentheses (| upper). When it takes extra arguments, pass them in parentheses (| truncate(14)).

Pipes bind tighter than arithmetic (+, -, *, /), so wrap arithmetic in parentheses before piping:

{(index + 1) | ordinal}

Handle missing data safely

Live broadcasts often have incomplete data before a match starts or before a map finishes. Any missing field or out-of-bounds list index evaluates to null instead of crashing the graphic.

Use the fallback operator (??) to supply a default value when data is null:

{match.teams.a.name ?? "TBD"}
{match.currentMap.name | upper ?? "MAP VETO"}
{formatDate(match.scheduledAt, "HH:mm [UTC]") ?? "UP NEXT"}

On air, if an expression still evaluates to null:

  • A { ... } block inside a text layer renders as empty text.
  • An image layer falls back to its static file asset, or hides if none exists.
  • A colour binding falls back to the layer's static colour.
  • A visibility condition hides the layer.
  • A repeat group renders zero rows.

Available data paths

The paths below map directly to the live ProductionOverlayView payload that Strave serves to browser sources today.

Active match

Read the teams, score, format, maps, veto sequence, and up-next match from match:

PathTypeDescription
match.teams.a.nameTextTeam A display name (alias: team.a.name, teamA).
match.teams.a.logoImageTeam A logo URL (alias: team.a.logo).
match.teams.a.scoreNumberTeam A live series score (alias: team.a.score, scoreA).
match.teams.a.tagTextTeam A tag (also match.teams.b.tag).
match.roundNameTextRound of the match (alias: round.name).
match.stageNameTextStage of the match (alias: stage.name).
match.teams.b.nameTextTeam B display name (alias: team.b.name, teamB).
match.teams.b.logoImageTeam B logo URL (alias: team.b.logo).
match.teams.b.scoreNumberTeam B live series score (alias: team.b.score, scoreB).
match.scoreTextCombined series score such as "2-1" (alias: score).
match.bestOfNumberSeries length: 1, 3, or 5 (alias: bestOf).
match.statusTextMatch state such as "scheduled", "ongoing", or "completed".
match.scheduledAtNumberScheduled start time as Unix milliseconds.
match.startedAtNumberActual start time as Unix milliseconds.
match.currentMap.nameTextActive map name (alias: map.name, mapName).
match.currentMap.numberNumberActive map number (1, 2, 3, ...).
match.mapsListSeries maps (id, name, image, number, scoreA, scoreB, winner, current).
match.vetoListMap veto entries (id, name, image, status, team, teamLogo, teamTag, side, pickNumber).
match.next.teams.a.nameTextNext scheduled match's Team A name (also .logo and teams.b).
match.meta.modeTextInfo slot mode: "timer", "custom", or "hidden".
match.meta.labelTextCustom info label when mode == "custom".
match.meta.valueTextCustom info value when mode == "custom".

On match.maps[i], winner is "a", "b", or null while the map is still in progress. On match.veto[i], status is "available", "picked", "banned", or "decider", team is "a" or "b", and side is "attack" or "defend".

Playday, event, organisation, and branding

Read the broadcast crew, rundown, sponsors, and event colours from the remaining namespaces:

PathTypeDescription
playday.castersList of textAssigned caster names for the active playday.
playday.footerTextsList of textEnabled footer ticker lines.
playday.matchesListRundown matches (id, number, teams.a.*, teams.b.*, bestOf, isForfeit, scheduledAt, status, roundLabel, groupName).
event.nameTextEvent display name, including any broadcast override (alias: event.displayName).
event.seasonTextOptional season or phase label.
event.nameRawTextEvent name without the broadcast override (alias: event.name.raw).
event.sponsorsListConfigured sponsors (name, image).
organisation.nameTextOrganisation display name (alias: org.name).
organisation.slugTextOrganisation URL slug.
organisation.logoImageOrganisation logo URL.
branding.primaryColourEvent primary broadcast colour.
branding.secondaryColourEvent secondary broadcast colour.
branding.accentColourEvent accent colour.
branding.transparentColourEvent translucent tint colour.
branding.backgroundColourEvent background colour.

Stats and standings

Stats come from the matches of the event that have stats. Every stat can be missing (for example before the first round), so add a fallback with ??. Player lists are sorted by rating, best first.

PathTypeDescription
match.teams.a.playersListPlayers of team A in the live match (Player records). Also match.teams.b.players.
match.teams.a.statsTeamTotals of team A in the live match (TeamStats). Also match.teams.b.stats.
stage.playersListPlayers over all matches of the live match's stage.
stage.teamsListTeams over all matches of the stage (TeamStats).
event.playersListPlayers over all matches of the tournament.
event.teamsListTeams over all matches of the tournament (TeamStats).
event.standingsListStandings of the live match's stage (rank, team.id, team.name, team.tag, team.logo, wins, overtimeWins, overtimeLosses, losses, roundDifferential, points, qualified). Also stage.standings.
stage.nameTextName of the live match's stage.
  • Player: id, name, photo, country, team, teamTag, teamLogo, and stats with rating, kills, deaths, assists, kd, kost, entryKills, entryDeaths, clutches, plants, hsPercent, roundsPlayed, and matchesPlayed. kost and hsPercent are fractions (0.74), so format them with format("0.0%").
  • TeamStats: id, name, tag, logo, kills, deaths, kd, rating, roundsWon, roundsLost, mapsWon, mapsLost, and matchesPlayed.

The editor previews stats with test data until your event has a live match.

Planned data paths

  • Live round state, manual fields, and sheets (Planned): match.currentMap.roundNumber, match.currentMap.attackTeam, manual.*, and external.*.

Layer visibility conditions

Attach a boolean expression to Visible when on any layer or group to toggle it automatically from live state. If you also turn off the eye icon in the Layers panel, the layer stays hidden regardless of its condition.

Use and, or, not, and comparison operators (==, !=, <, <=, >, >=) to build rules:

match.bestOf >= 3
match.teams.a.score >= 2
match.next.teams.a.name != null and match.next.teams.b.name != null
not (match.status == "completed")

Repeat groups

A repeat group duplicates a group of layers once for each entry in a list. You design one card or table row in Photoshop or the Strave editor, bind Repeat source to a list expression, and choose a layout direction (Vertical, Horizontal, or Grid) plus the pixel gap between copies.

Inside a repeat group, three extra variables are available in every child layer:

  • item holds the current list entry (for example item.name or item.teams.a.score).
  • index holds the zero-based position (0, 1, 2, ...).
  • count holds the total number of rendered copies.

Repeat groups can't be nested inside another repeat group. For multi-column tables or map grids, set the repeat direction to Grid and set the column count instead. Each repeat group renders up to 64 items.

Rainbow Six Siege broadcast examples

Use these patterns as starting points for common Siege broadcast graphics.

Bo1, Bo3, and Bo5 score pips

One header design can adapt to every series format without duplicating scenes in OBS. Create three pip layers per team (empty frame plus filled pip) and bind visibility and fill colour:

  • Pip 1 frame (always shown in Bo1/Bo3/Bo5): match.bestOf >= 1
  • Pip 2 frame (Bo3 and Bo5): match.bestOf >= 3
  • Pip 3 frame (Bo5 only): match.bestOf >= 5
  • Team A Pip 2 fill colour: if(match.teams.a.score >= 2, branding.primary, #27272A)
  • Team B Pip 2 fill colour: if(match.teams.b.score >= 2, branding.secondary, #27272A)
  • Series format badge text: BO{match.bestOf}

Map win markers on a series header

Bind a horizontal repeat group to match.maps to draw one card per map in the series:

  • Map image layer: item.image
  • Map title text: {item.name | upper}
  • Map score or status text: {if(item.scoreA != null, text(item.scoreA) + " - " + text(item.scoreB), if(item.current, "LIVE", "MAP " + text(item.number)))}
  • Winner accent bar colour: switch(item.winner, "a", branding.primary, "b", branding.secondary, #3F3F46)
  • Winner logo layer (Image): switch(item.winner, "a", match.teams.a.logo, "b", match.teams.b.logo)
  • Winner logo visibility: item.winner != null
  • Live pulse badge visibility: item.current

If your design uses fixed PSD slots instead of a repeat group, index directly into match.maps (zero-based, so match.maps[1] is Map 2):

  • Map 2 slot visibility: match.bestOf >= 3 and match.maps[1] != null
  • Map 2 winner text: {switch(match.maps[1].winner, "a", match.teams.a.name, "b", match.teams.b.name, "TBD")}

Map veto bar

Bind a horizontal repeat group to match.veto | filter("status", "!=", "available") to show only the bans, picks, and decider that have happened so far:

  • Map artwork (Image): item.image
  • Action label text: {switch(item.status, "banned", "BAN", "picked", "PICK", "decider", "DECIDER", "")}
  • Action badge colour: switch(item.status, "banned", #DC2626, "picked", #16A34A, "decider", branding.accent, #52525B)
  • Team tag text: {item.teamTag ?? ""}
  • Starting side badge visibility: item.side != null
  • Starting side text: {item.side | upper}
  • Completed veto count (outside group): {match.veto | filter("status", "!=", "available") | count} / {match.veto | count}

Playday schedule rundown

Bind a vertical repeat group to playday.matches | take(5) to render up to five matches from the Stream Manager rundown:

  • Match label text: MATCH {index + 1}
  • Kick-off time text: {formatDate(item.scheduledAt, "HH:mm [UTC]") ?? "TBD"}
  • Team A name text: {item.teams.a.name ?? "TBD"}
  • Team A logo (Image): item.teams.a.logo
  • Centre score or VS text: {if(item.isForfeit, "FF", if(item.status == "scheduled", "VS", text(item.teams.a.score) + " - " + text(item.teams.b.score)))}
  • On-air highlight bar visibility: item.status == "ongoing"

Caster desk and up-next bar

Combine join and null checks for lower thirds that stay clean when no next match or caster is assigned:

  • Caster line text: {playday.casters | join(" & ") ?? ""}
  • Caster bar visibility: playday.casters | count > 0
  • Up-next banner visibility: match.next.teams.a.name != null and match.next.teams.b.name != null
  • Up-next banner text: NEXT: {match.next.teams.a.name | upper} VS {match.next.teams.b.name | upper}

Player stat cards

Bind a repeat group to match.teams.a.players | sort("stats.rating", "desc") | take(5) to build five-player stat cards and team totals. Use event.players or stage.players for a tournament or stage leaderboard:

  • Player name text: {item.name | upper}
  • Siege rating text: {item.stats.rating | format("0.00") ?? "-"}
  • KOST percentage text: {item.stats.kost | format("0.0%") ?? "-"}
  • K-D text: {item.stats.kills ?? 0}-{item.stats.deaths ?? 0}
  • Computed K/D ratio text: {(item.stats.kills / item.stats.deaths) | format("0.00") ?? "-"}
  • Team total kills (outside group): {match.teams.a.players | sum("stats.kills")}
  • Team average KOST (outside group): {match.teams.a.players | avg("stats.kost") | format("0.0%") ?? "-"}

Stage standings table

Bind a vertical repeat group to event.standings | take(8) (or event.standings | skip(4) | take(4) for a second column):

  • Placement text: {(index + 1) | ordinal}
  • Team logo (Image): item.team.logo
  • Team name text: {item.team.name}
  • W-OTW-OTL-L record text: {item.wins}-{item.overtimeWins}-{item.overtimeLosses}-{item.losses}
  • Signed round differential text: {item.roundDifferential | format("+0")}
  • Points text: {item.points}
  • Playoff qualification marker visibility: item.qualified

Errors and publishing

The editor checks every expression against the catalog as you type and shows the first problem under the field:

  • Drafts always save. You can leave an unfinished expression in a draft and come back later without losing your work.
  • Publish blocks errors. While any layer has a syntax or type error, the editor shows an Errors button next to Publish and Publish is off. Select the button to see the layers, and select a layer to fix it.
  • Warnings don't block publishing. Non-blocking notices (such as a redundant ?? fallback or a legacy token alias) let you publish right away.

Always test your published design with Test playday in the overlays gallery before putting a playday on air, especially after editing visibility conditions or repeat groups.

Next steps