Assigning a specific Rackspace to a keyboard action

Hi Guys,
Sorry I’m a noob at this scripting.
What I’m trying to achieve is the below script (that is working fine)

On keystroke matching “a” // switch to rackspace
Next()
End

I’m wanting to know if I can call up one of my named racks specifically with this?
Reason being is I have a footswitch that acts as a extension of a keyboard/mouse etc so trying to assign keyboard keys to each rack, rather than the alternative of mapping to the arrow keys to scroll up and down.

Thanks :slight_smile:
Az

Hi @AzBurns welcome to the forum!

Yes you can. There is one function that lets you select the rackspace by its index/order. The second is by a specific name.

https://gigperformer.com/docs/GPScript40/content/reference/list-of-functions.html#SwitchToRackspace

This will switch to the third rackspace and first variation (numbering starts from zero).

SwitchToRackspace(2,0)

This will switch to one by name, and first variation:

SwitchToRackspaceByName(“My awesome rackspace”, 0)

If copying from the forum, you will need to correct the quotation marks to be plain text quotes.

1 Like

Wow, that was quick!
Great work guys, problem solved, thanks a bunch :slight_smile:
Az

2 Likes