Quick Sign In:  

Forum: Old versions

Topic: Deck select via a variable

This topic is old and might contain outdated or incorrect information.

locoDogPRO InfinityModeratorMember since 2013
I've just learnt about this type of script, taking a var and applying it to a slider
get_var 'Vol' & param_cast & deck 2 level

I'd like to have a var to set the selected deck, I've been trying this type of stuff with no joy

get_var '$oldFocus' & param_cast "integer" & select
 

Posted Mon 15 Dec 14 @ 10:27 pm
locoDogPRO InfinityModeratorMember since 2013
Bump, I'm aware of this type of method, but was hoping for something less query laden.


var_equal '$oldFocus' 1 ?
deck 1 select & set '$oldFocus' 0 :
var_equal '$oldFocus' 2 ?
deck 2 select & set '$oldFocus' 0 :
var_equal '$oldFocus' 3 ?
deck 3 select & set '$oldFocus' 0 :
var_equal '$oldFocus' 4 ?
deck 4 select & set '$oldFocus' 0 :
nothing
 

Posted Thu 18 Dec 14 @ 10:16 pm
PachNPRO InfinityMember since 2009
What about get_activedeck?
 

Posted Fri 19 Dec 14 @ 9:34 am
locoDogPRO InfinityModeratorMember since 2013
I'm sorry I don't follow you. I set the variable like so

set'$oldFocus' '`get_defaultdeck'

I've tried all the I can think of with this type, to set the default deck from a oldfocus variable

get_var '$oldFocus' & param_cast "integer" & select/deck select/defaultdeck

get_activedeck, won't set anything will it.
I wish anything that can be get_ ed, could be set_ ed,
I suppose the long way will do, but was hoping for something smarter

 

Posted Fri 19 Dec 14 @ 5:16 pm
I remember reading somewhere on the forum that it isn't possible to use a variable as the parameter for a command while trying to use the breakstart with a variable.

instead of "brakestart 20%" i wanted "breakstart '$brake_lenght'" because I only have endless encoders on my players and I wanted to be able to enable and disable brakestart with set value but supposedly it can't be done.

Are you saing that "get_var 'brake_lenght' & param_cast & brakestart" would work?
 

Posted Tue 13 Jan 15 @ 6:36 am
locoDogPRO InfinityModeratorMember since 2013
Once '$brake_length' is set these are working here,

get_var '$brake_length' & param_cast & setting "rampStartTime"
get_var '$brake_length' & param_cast & setting "rampStopTime"

So are

get_var '$brake_length' & param_cast & startupspeed
get_var '$brake_length' & param_cast & brakespeed

Have what you read earlier, stricken from the record.
 

Posted Tue 13 Jan 15 @ 12:47 pm


(Old topics and forums are automatically closed)