Connexion rapide:  

Forum: Old versions

Sujet Script Working one way not the other, WHY?

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

locoDogPRO InfinityModeratorMember since 2013
I'm trying to get a POI and a custom button to automate a slider and am having problems
What happens is as the POI is activated it first checks $T101 (has it been triggered)
if yes, it presses a custom button, the custom button increases the slider, it also gets the current beat adds a tiny bit to this number and uses the number to place the poi ahead of the playhead
if no, it sets the slider to a level (decided by a var) sets '$T101' to 1 and then presses the same custom button as before
($S101 is a sweep type and for now is a constant 1)
Where it falls down is, in the $T101 = 0 state it won't move the poi, $T101 gets set and the custom button IS pressed once (slider increases by 1%) but the poi won't move


POI
var_equal '$T101' 1 ? 
____var_equal '$S101' 0 ?
________nothing
________: var_equal '$S101' 1 ?
____________custom_button 3 1
____________: deck 1 pause
____: var_equal '$S101' 0 ?
________nothing
________: var_equal '$S101' 1 ?
____________get_var '$L101' & param_cast & deck 1 effect_slider 'flanger' 1 & custom_button 3 1 & set '$T101' 1
____________: nothing

var_equal '$T101' 1 ? var_equal '$S101' 0 ? nothing : var_equal '$S101' 1 ? custom_button 3 1 : deck 1 pause : var_equal '$S101' 0 ? nothing : var_equal '$S101' 1 ? get_var '$L101' & param_cast & deck 1 effect_slider 'flanger' 1 & custom_button 3 1 & set '$T101' 1 : nothing

Custom button 3 1
deck 1 effect_slider 'flanger' 1 +1% & var_equal '$D101' 4 ? 
----deck 1 get_beatpos & param_add 0.02 & param_cast & deck 1 set_cue 3
----: nothing

deck 1 effect_slider 'flanger' 1 +1% & var_equal '$D101' 4 ? deck 1 get_beatpos & param_add 0.02 & param_cast & deck 1 set_cue 3 : nothing


*Edit* I have it working, but I had to put the triggered ($T101) query inside the sweep query, WHY IS THIS?

var_equal '$S101' 0 ? nothing : var_equal '$S101' 1 ? custom_button 3 1 & var_equal '$T101' 1 ? nothing : get_var '$L101' & param_cast & deck 1 effect_slider 'flanger' 1 & set '$T101' 1
 

Posté Thu 29 Jan 15 @ 11:05 am


(Les anciens sujets et forums sont automatiquement fermés)