Dynamic variable names

dimanche 25 janvier 2015

Hi everyone. This is my first post in the forum.

First of all I'd like to salute you all from Spain, and thank the creator of Mobius for the incredible piece of software it is. I discovered it a couple of months ago and I have to say it is incredible, specially being able to customize it with scrips. Thanks. I'm really enjoying it.



And here goes my question.

I am at a point with two scripts where I'd need to create global variables but their names should make reference to the loop number and track number, since the script will probably run over more than one loop at a time, and will keep running in the background.

Also to recall the variable value, I need to call the variable in reference to the current loop and track numbers.

Is this possible?

Is there a way to set and recall a variable using other variables in the name?



An example would be, if I'm on track 2, loop 3...



Variable global anyText-$track-$loopNumber



The variable would be: anyText-2-3



Set anyText-$track-$loopNumber 1000



A related problem I found last week was trying to set the track name to a text string + the value of a variable. Is there a way to set a variable to be text string + variable value?



Thanks. Take care.



Dani




0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor