Open a Tab in a Container with a Button and switch tabs

Hi There,

Is there a way to show a Tab in a Container with a push button? Both widgets are not at the same place.
Im using now OSC v1 beta 7.

Is it still possible to switch the root tabs at the lower edge of the screen?

Thanks for your help

Yes, you can do it simply by using the button's script property, for example:

var tab_index = 1
set("container_id", tab_index)

See Scripting - Open Stage Control

Is it still possible to switch the root tabs at the lower edge of the screen?

With css, yes:

> inner {
  flex-direction: column-reverse
}
> inner > .navigation .tablink:before {
  bottom: auto;
  top: 0;
}
1 Like

Hi Jean,

thnak you very much for your quick help :slight_smile: It works like a charm.

Can you please ask me:

Is it possible to hide the Tabs without the content in it?

Thank you very much

hi @StephanS,

Would you please share with the community the code ?
IMHO Open-Stage-Control lacks from real examples so please share your code and help beginners.
Thanks


Nicolas

Hi Nicolas,

Jean has write the whole nessesary code. Sry but i dont know what you mean.

if you publish your json file, everybody can load it and then explore the code and widgets and learn syntax uses in example.
Clearer ?

1 Like

im at creating a template for my cubase and dorico setup and if its useable i post the json file.

thanks to you i learn about the existence of Dorico :slight_smile:

I need a little help. I have a switch named "Bank" and when I change tracks in Reaper, if /track/number/str is higher than 8, I want O-S-C to switch to the second bank. I have put this in the scripting section of the switch

if (OSC{/track/number/str} > 8{
set("Bank", 2)
}

Am I on the right track?

The switch's script will only be executed when its value changes, not when the osc listener (the OSC{} block) receives a value, so this won't work (there's also a syntax error: missing closing parenthesis after "> 8").

You could achieve what you want by writing this int the switch's value property:

JS{{
if (OSC{/track/number/str} > 8) {
  return 2
}
}} 

or you could create a script widget with address set to /track/number/str and script to:

if (value > 8) {
  set("Bank", 2)
}