Workspace Page as SourceHandle

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

User avatar
sideshowbond
Posts: 153
Joined: 18 Nov 2016, 20:58

Workspace Page as SourceHandle

Postby sideshowbond » 22 Aug 2018, 17:00

I am trying to label workspace pages via macro. I am wondering how I could possibly set a workspace page to be the SourceHandle.
icke_siegen
Posts: 901
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Workspace Page as SourceHandle

Postby icke_siegen » 25 Aug 2018, 19:26

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>
icke_siegen
Posts: 901
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Workspace Page as SourceHandle

Postby icke_siegen » 25 Aug 2018, 19:42

icke_siegen
Posts: 901
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Workspace Page as SourceHandle

Postby icke_siegen » 26 Aug 2018, 11:04

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;”)

Who is online

Users browsing this forum: No registered users and 3 guests