A small unsexy addition that came with v8.4 [2020] that actual could be a big thing
variables can now hold strings
Set [capture] like this
set 'test1' `get_text 'hello'`
set 'test2' `get_browsed_song "artist"`
And you can compare just like any other variable
prove it with custom_button led logic
param_equal `get_var test1` 'hello' ? on : off
check what the var actually is with this as a custom_button name
`get_var test1`
or inspect with the var list viewer
var_list
I'll post more as I figure any nuances
variables can now hold strings
Set [capture] like this
set 'test1' `get_text 'hello'`
set 'test2' `get_browsed_song "artist"`
And you can compare just like any other variable
prove it with custom_button led logic
param_equal `get_var test1` 'hello' ? on : off
check what the var actually is with this as a custom_button name
`get_var test1`
or inspect with the var list viewer
var_list
I'll post more as I figure any nuances
Posted Tue 24 Sep 19 @ 10:37 am
Hi, a quick, question -
I want to be able to turn on a specific shader (eg: "geometry") and then control transparency in the poi editor.
I tried effect_string "shader" 1 "geometry" & effect_slider "shader" 1 +0% but they do not work for me.
can anyone advise?
Tks
I want to be able to turn on a specific shader (eg: "geometry") and then control transparency in the poi editor.
I tried effect_string "shader" 1 "geometry" & effect_slider "shader" 1 +0% but they do not work for me.
can anyone advise?
Tks
Posted Wed 30 Oct 19 @ 4:11 am
As locodog said previous page:
Button 1 : show position & size selection tool
Button 2 : AutoChange
Button 3 : BeatMove
Slider 1 : Shader selection
Slider 2 : Transparency
String 1 : Indexed name ... the one on Shadertoy
String 2 : Prety name ... the one we understand
Only shader selection (slider 1) reflect in the GUI, all other actions are not reported
however transparency, BeatMove and AutoChange are effective even not updated in the gui
NOT working anymore ?
When a shader or folder is specified by any of its name , the string is affected, querying them gives the changed value, but nothing apply
maybe some extra action is needed or syntax change ?
for transparency use :
deck master effect_slider 'shader' 2 50%
for a shader...
deck master effect_slider 'shader' 1 12%
it is working but have to know the relative position in the list "All"
Don't play too much with it actually.. it crashed some of my PC just using it ... VDJ still up but WindowManager totally broken.. and another one got BSOD
was working fine before last summer
Button 1 : show position & size selection tool
Button 2 : AutoChange
Button 3 : BeatMove
Slider 1 : Shader selection
Slider 2 : Transparency
String 1 : Indexed name ... the one on Shadertoy
String 2 : Prety name ... the one we understand
Only shader selection (slider 1) reflect in the GUI, all other actions are not reported
however transparency, BeatMove and AutoChange are effective even not updated in the gui
NOT working anymore ?
When a shader or folder is specified by any of its name , the string is affected, querying them gives the changed value, but nothing apply
maybe some extra action is needed or syntax change ?
for transparency use :
deck master effect_slider 'shader' 2 50%
for a shader...
deck master effect_slider 'shader' 1 12%
it is working but have to know the relative position in the list "All"
Don't play too much with it actually.. it crashed some of my PC just using it ... VDJ still up but WindowManager totally broken.. and another one got BSOD
was working fine before last summer
Posted Wed 30 Oct 19 @ 8:25 am
I've reported effect string not working but the "nudge" of slider 1 [shader select]workaround works here
Posted Wed 30 Oct 19 @ 9:50 am
Just a little thing I've been playing with for NYE, for your 1 hour/ 30minutes /10 minutes etc to go, you'll have something planned yourself
but just as general countdown for your video out you could do this
firstly set some variables, say you start showing your countdown at 9:30pm, 2 & a half hours to go, also turn text fx on
set 'hour' 2 & set 'min' 30 & set 'sec' 0 & effect_active 'text' 1
Second start these variables counting down [really you could do script 1 & 2 together]
repeat_start 'tCounter' 1000ms & cycle 'sec' -60 & var 'sec' 59 ? cycle 'min' -60 & var 'min' 59 ? cycle 'hour' -24 : : :
Third put these variables into a text string & send it to the text fx
repeat_start 'clock2text' 1000ms & get_text "`get_var 'hour' & param_cast '00'`:`get_var 'min' & param_cast '00'`:`get_var 'sec' & param_cast '00'`" & param_cast 'text' & effect_string 'text' 2
realistically you'd ditch this at 1 minute to go and you could kill it via event schedule at 23:58:59 with something like this
repeat_stop 'tcounter' & repeat_stop 'clock2text' & effect_active 'text' 0
And honestly you could put the countdown together with 1 script [I broke it up to make it easier to understand]
set 'hour' 2 & set 'min' 30 & set 'sec' 00 & effect_active 'text' 1 & repeat_start 'clock2text' 1000ms & get_text "`get_var 'hour' & param_cast '00'`:`get_var 'min' & param_cast '00'`:`get_var 'sec' & param_cast '00'`" & param_cast 'text' & effect_string 'text' 2 & cycle 'sec' -60 & var 'sec' 59 ? cycle 'min' -60 & var 'min' 59 ? cycle 'hour' -24 : : :
but just as general countdown for your video out you could do this
firstly set some variables, say you start showing your countdown at 9:30pm, 2 & a half hours to go, also turn text fx on
set 'hour' 2 & set 'min' 30 & set 'sec' 0 & effect_active 'text' 1
Second start these variables counting down [really you could do script 1 & 2 together]
repeat_start 'tCounter' 1000ms & cycle 'sec' -60 & var 'sec' 59 ? cycle 'min' -60 & var 'min' 59 ? cycle 'hour' -24 : : :
Third put these variables into a text string & send it to the text fx
repeat_start 'clock2text' 1000ms & get_text "`get_var 'hour' & param_cast '00'`:`get_var 'min' & param_cast '00'`:`get_var 'sec' & param_cast '00'`" & param_cast 'text' & effect_string 'text' 2
realistically you'd ditch this at 1 minute to go and you could kill it via event schedule at 23:58:59 with something like this
repeat_stop 'tcounter' & repeat_stop 'clock2text' & effect_active 'text' 0
And honestly you could put the countdown together with 1 script [I broke it up to make it easier to understand]
set 'hour' 2 & set 'min' 30 & set 'sec' 00 & effect_active 'text' 1 & repeat_start 'clock2text' 1000ms & get_text "`get_var 'hour' & param_cast '00'`:`get_var 'min' & param_cast '00'`:`get_var 'sec' & param_cast '00'`" & param_cast 'text' & effect_string 'text' 2 & cycle 'sec' -60 & var 'sec' 59 ? cycle 'min' -60 & var 'min' 59 ? cycle 'hour' -24 : : :
Posted Sat 23 Nov 19 @ 7:54 pm