Page 1 of 1

Workspace Page as SourceHandle

Posted: 22 Aug 2018, 17:00
by sideshowbond
I am trying to label workspace pages via macro. I am wondering how I could possibly set a workspace page to be the SourceHandle.

Re: Workspace Page as SourceHandle

Posted: 25 Aug 2018, 19:26
by icke_siegen
You don't ned to - instead you select the correct page with Handles.SetGroupPage(group, index) and then set the page name with Handles.SetGroupPageName(group, legend).

Here is an example which I have tried and will put it in the wiki now:

Code: Select all

<step>Handles.SetGroupPage("Fixtures", 0)</step>   
<step>Handles.SetGroupPageName("Fixtures", "Generics")</step>
<step>Handles.SetGroupPage("Fixtures", 1)</step>   
<step>Handles.SetGroupPageName("Fixtures", "Spots")</step>
<step>Handles.SetGroupPage("Fixtures", 2)</step>   
<step>Handles.SetGroupPageName("Fixtures", "Washes")</step>
<step>Handles.SetGroupPage("Fixtures", 3)</step>   
<step>Handles.SetGroupPageName("Fixtures", "LED Wall")</step>

Re: Workspace Page as SourceHandle

Posted: 25 Aug 2018, 19:42
by icke_siegen

Re: Workspace Page as SourceHandle

Posted: 26 Aug 2018, 11:04
by icke_siegen
To add to this:

When using characters outside the ASCII character table as name the results may vary:

- in order to get an ampersand ( the & character) you must write it as entity (&amp;): Handles.SetGroupPageName(“Colours”, “Greens &amp; Blues”)
- german Umlauts (ä, ö, ü, ß and the like) work normally (entities would throw errors): Handles.SetGroupPageName(“Colours”, “Grün”)
- you can even display UTF-16 characters by using the HTML code notation, e.g. for the Yuan character 元: Handles.SetGroupPageName(“Playbacks”, “&#20803;”)