string scripting question
Posted: 30 Nov 2012 15:13
say i have a 16 step sequencer, built out of switches named Sequence_1, Sequence_2....-> Sequence_16
Is there some way, programatically, that I can access those object extension numbers?
for example, i have this simple conditional, to send a light value to Sequence_4:
//
if(integer_value >= 4)
Sequence_4.light_value=-0.3;
else
Sequence_4.light_value=-1;
Is there some way i can programatically script this so that i don't have to just repeat that same conditional 16 times for all my switches? Can i join a string "Sequence_" and then a float to make that message?
Is there some way, programatically, that I can access those object extension numbers?
for example, i have this simple conditional, to send a light value to Sequence_4:
//
if(integer_value >= 4)
Sequence_4.light_value=-0.3;
else
Sequence_4.light_value=-1;
Is there some way i can programatically script this so that i don't have to just repeat that same conditional 16 times for all my switches? Can i join a string "Sequence_" and then a float to make that message?