快速登录:  

Forum: VirtualDJ Technical Support

话题: Custom_buttons selected entry
NicotuxHome userMember since 2014
I have scripts that do not work anymore
it looks like calling custom_button from script now need to specify a line index
"custom_button 3" do not call the button #3
need to specify "custom_button 3 1" for entry 1 ...

but is there a way to call the selected line as "custom_button 3" does in skins ?
 

发表时间 Mon 01 Nov 21 @ 6:35 pm
AdionPRO InfinityCTOMember since 2006
Hard to tell without the script you used.
 

发表时间 Mon 01 Nov 21 @ 7:47 pm
NicotuxHome userMember since 2014
simply "custom_button 3" from custom slider 1 (aka button 5) ^^
I forgot the permanent parameter in slider preventing custom_buttons to work properly

I post it because it's really interesting and previous in other thread with tentative to use "set"

I finally get the scripts for thee 3 custom_slider to set R V B color working ;)
will be useful for videoskin colorize effect without effect :)

same for myred and mygreen and myblue variables
set myblue & & param_bigger 0 ? param_bigger `get_var myblue` 1 ? debug std & custom_button 3 : set myblue 1 & debug full & custom_button 3 : param_bigger `get_var myblue` 0 ? set myblue 0 & debug null & custom_button 3 : debug stdlow & custom_button 3

vs
set myblue & & param_bigger 0 ? param_bigger `get_var myblue` 1 ? debug std & padshift 16 : set myblue 1 & debug full & padshift 16 : param_bigger `get_var myblue` 0 ? set myblue 0 & debug null & padshift 16 : debug stdlow & padshift 16


with shiftpad 16 and custom_button 3
set zero `get_text '0.0'` & set one `get_text '1.0'` & set mycompositecolor -0 & param_add "get_text ' `get_var myred & param_equal 0 ? get_var zero : param_equal 1 ? get_var one` `get_var mygreen & param_equal 0 ? get_var zero : param_equal 1 ? get_var one`  `get_var myblue & param_equal 0 ? get_var zero : param_equal 1 ? get_var one``' "  "get_text '`color' "  & param_cast & debug & debug text & param_cast text & custom_button_name 3 & param_cast & debug & debug action & get_text `custom_button_name 3 & param_cast text 9` & param_cast text & debug
'0.0' and '1.0' make script simple but using param_cast '0.000' with integer

color script for pad 1(or anything needing a color)
get_text `custom_button_name 3 & param_cast text 9` & color


the issue is simple : custom_sliders and custom_buttons are buggy since a long time now...

Custom_button synopsis :
calling a custom button / slider need
- 1 param (can be implicit or no param implicit and 1 explicit)
- 2 params (can be 1 implicit 1 explicit or 2 explicit)

,____from previous script
v
button# & custom_button
no param & custom button button#
entry# & custom_button button#
no param & custom button button# entry#

but there is no way to specify current line (i.e.: -1 or 0 or anything <=0 for default would be just fine)
and there is no way to reset to "no param" in sliders, and setting param to 3 is possible with some big script but would break the slider display

so that calling a custom_button from within a slider (or custom slider/button) is not easily possible

replace with a pad or a multibutton is working because they both allow to pass parameters to script
the other hand multibutton does not allow calling specific entry (and multibutton_select seems not to work anymore)
 

发表时间 Mon 01 Nov 21 @ 10:16 pm