Exchanging information between rackspace and global rackspace

I would like to put a plugin in the global rackspace that needs to be loaded with a GPPreset. The GPPreset to be loaded depends on the rackspace, and I have 150 rackspaces…
I already made a test with this plugin in the rackspace itself and with the necessary script and it works. But I would like to avoid modifying the 150 rackspaces to add this new plugin in all of them as it is a tremendous work. So my idea to put it in the global rackspace instead.

So is there a possibility to send the GPPreset name string that is recorded in every rackspace script to the global rackspace ? If yes, I would code this in the rackspace script “on activate” block… If there is no possibility, I will have to achieve this via midi exchanges, arrays of strings, etc.. but this may quickly become a gas factory and would not be very flexible…

I tried to find this on documentation but could not…

You can send an OSC message to Gig Performer itself and in the global rackspace script you can react on that OSC message.

There no need for OSC here

If you want to use “On Activate” in every rackspace, then just set an environment variable to the name of the preset you want

E.g.

On Activate
    SetEnvVariable("Preset", "MyPiano")
End

then in the global rackspace, just response to the On Rackspace callback, then get the environment variable value and load your preset using that.

Alternatively, if you don’t want to bother with creating an On Activate callback in every rackspace, then you could get really cute.

For example, suppose you change the name of the first variation of each rackspace to be the name of the GPPreset you want to use. Then you could just create a single On Rackspace callback in the global rackspace, request the NAME of the variation and then use LoadGPPreset

2 Likes

Many thanks. Will test the environment variable first as it seems easier. And I have not explored OSC aspects yet…

Confirm it works perfectly with environment variable. I learnt many other interesting points again :zany_face: Thanks!