Can a push button open a tab?

Can a push button open a tab, or as alternative, a tab execute a push command? I need to send the system to specific status with OSC push command before the tab content interaction.

A tab container’s value determines the index of the opened tab, you can either set that container’s value with a script or use that value to trigger a script. Here’s is a short example for the second case:

  • we want to monitor which tab is opened in the main container (id=root)
  • create a script with value set to @{root}
  • set its script property to

if (value == 0) {
  // 1st tab
  // do something
} else if (value == 1) {
  // 2nd tab
  // do something else...