Why does SetGlobalTranspose not work in song/gig scripts?

When I use the function SetGlobalTranspose in a rackspace script, it seems to work (although not sure in all cases). I see the TRANSPOSE value change in the top part of the screen of GP.

However, when I call the same function from a song or gig script, it doesn’t affect the global transpose. I used Print statements to verify that the code is called (which is).

Is there a reason why it doesn’t work (or did I found a bug?)

Sometimes it is working, found no rule.

Sometimes? That doesn’t seem very useful in a scripting language.

I just see I can use the Song Properties’ ‘Transpose’ value, so I don’t need to script it (I was thinking too complicated).

This could also be the reason it overrides the SetGlobalTranspose call from scripts.