Hi all,
I wonder if it is possible to use a variable (build a string and put it into a variable) in the action part of button call?
E.g. change <button action="deck 1 play_pause"> to some thing like this<button action="get_var $test_var">?
So fare I have manage to "build" the string and put it into a variable and verified that I have the correct string in my variable with the var_list command.
<oninit action="set_var '$test_var' 'deck 1 play_pause' "/>
<oninit action="var_list"/>
But all my many attempt in various forms to call <button action=... has failed.
Is it not possible to use a variable when calling the button functions action?
I wonder if it is possible to use a variable (build a string and put it into a variable) in the action part of button call?
E.g. change <button action="deck 1 play_pause"> to some thing like this<button action="get_var $test_var">?
So fare I have manage to "build" the string and put it into a variable and verified that I have the correct string in my variable with the var_list command.
<oninit action="set_var '$test_var' 'deck 1 play_pause' "/>
<oninit action="var_list"/>
But all my many attempt in various forms to call <button action=... has failed.
Is it not possible to use a variable when calling the button functions action?
Posted 18 hours ago
Can't be done directly, but can be done other ways.
My virtualfx plugin [windows only] can do this, you send your string to the effect_string for one of the inputs [most likely one of the buttons but also has dials, once per buffer, fx on and effect off inputs] and then call the button.
The other way is to send your string to a custom_button and then call it, I use custom_button 9 as my disposable macro holder.
The only limitation to using a custom_button is that they can't call custom_buttons as part of their action.
My virtualfx plugin [windows only] can do this, you send your string to the effect_string for one of the inputs [most likely one of the buttons but also has dials, once per buffer, fx on and effect off inputs] and then call the button.
The other way is to send your string to a custom_button and then call it, I use custom_button 9 as my disposable macro holder.
set_var $test_var 'deck 1 play_pause' & get_var $test_var & param_cast text & custom_button 9 & custom_button 9
The only limitation to using a custom_button is that they can't call custom_buttons as part of their action.
Posted 18 hours ago
Hi @locoDog,
Thank you for your reply, even if it was a little beyond my understanding!
I'm new to VDJ and new to creating skins so I wonder if you could give me a few hints on how to apply your code example.
Currently I'm looking at the default Starter skin (Starter.xml) and It kind of makes sense. I have also been looking at the Pro skin (as I see 'custom_button' code in it) but it looks a bit more intimating.
It is a shame that variables can't directly be applied to the button action as it would have made things neater when it comes to (at least the way I see now) combing VDJScripts verbs into longer chunks.
Thank you for your reply, even if it was a little beyond my understanding!
I'm new to VDJ and new to creating skins so I wonder if you could give me a few hints on how to apply your code example.
Currently I'm looking at the default Starter skin (Starter.xml) and It kind of makes sense. I have also been looking at the Pro skin (as I see 'custom_button' code in it) but it looks a bit more intimating.
It is a shame that variables can't directly be applied to the button action as it would have made things neater when it comes to (at least the way I see now) combing VDJScripts verbs into longer chunks.
Posted 13 hours ago
put the code block on your HW button mapping and it will work.
Posted 12 hours ago





