Re: Creating a setlist template
Posted: 01 Apr 2012 14:40
Hi
For your Prev script you could use this
Then just have 1 current_tab var and 1 tab_index to deal with,
For the scenes - you already have the tab index and a trigger with the Next/Prev scripts so use them.
How do you want to sent the scene messages? Fit that into the script.
Hope that helps
MM
For your Prev script you could use this
Code: Select all
decl t;
t = current_tab;
if (t>0) //if not at 0 tab
{
t=t-1; // decrement peeeeeeeeeeeeeeeeeeeee
selecttab(Set,tab_index[t]);
current_tab = t;
}
else // if it is at the 0 tab
{
selecttab(Set,tab_index[sizeof(tab_index)-1]); // set tab to last element
current_tab = sizeof(tab_index)-1;
}
For the scenes - you already have the tab index and a trigger with the Next/Prev scripts so use them.
How do you want to sent the scene messages? Fit that into the script.
Hope that helps
MM