Global variable bug?


#1

If I assign an echo device to a global variable, then use that variable in another piston, I can’t find the echo attribute “setVolumeSpeakAndRestore”

But if I change an already existing piston from this:

to this:

then the “setVolumeSpeakAndRestore” attribute remains and seems to work ok…

In other words, I don’t seem to have the same echo device attributes available to me when it’s listed in a global variable, but if I swap out an echo device for the global variable that has the echo device in it, it’ll work.


#2

You must set the attributes while pointing to a specific Echo device and once completed, you can change to the global variable. This behaviour exists in a great many Webcore statements beyond echo speaks. This is expected.


#3

So you are saying this is normal and I can continue to modify my pistons this way?


#4

It appears to be normal (I ran into the same thing with using device variables). Write the piston while pointing to a specific Echo device. When you’re done, you can change the piston to point at the global variable that you’ve set up that represents the chosen echo device.