Se Connecter:     


Forum: VirtualDJ Plugins

Sujet: VDJScript: address plugin param or button by name

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

Hello there,

I'm currently trying to develop a simple plugin that should send out Midi notes when a parameter is changed.
Currently I've assigned that parameter to a button to be able to toggle it like so:

effect 'plugin' button 2 1

While that works, things will get messy once I introduce more buttons. It would feel much more natural if I could address these buttons by their name, or the name of the corresponding parameter, something like:

effect 'plugin' break

Where break would be the param the plugin is listening on through "onParameter".
I've seen effect_command but could not find any more information on how to use that? Which commands would I be sending with it?
Is it possible to directly call a plugins parameters by VDJScript?

Thanks in advance,
Marco
 

Posté Sat 01 Aug 15 @ 1:59 pm
No; you can get the name from the number but you can't address them by name.

You could enumerate and match manually.
 

 

Detection of changes in variable value is done by polling continuously :)
 

Ahh.. and I thought onParameter would detect that. Oh well.
How often do you check for changes? Every 1/2s?
 

It depends on the purpose, whatever works for your functionality. For the kind of plugin like the freestyler plugin, maybe 200 times a second or so lol
 

Okay fair enough, I'll do my testing. Thanks alot! :)

/edit:

Btw, do you have any info on how to use effect_command?
 

effect_command relates to a parameter declared as VDJPARAM_COMMAND. The parameter you pass to the script is passed to the variable specified in DeclareParameter.

Few effects implement it tbh.
 

Ah okay, thanks! I'm curious: are there any documentations and guides on plugin development for pro users that are invisible for regular users?
I know about the SDK pages but they seem to be incomplete here and there?
 

No; the best documentation are the SDK headers themselves :)
 



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