Connexion rapide:  

Forum: VirtualDJ Skins

Sujet detecting if a controller is attached

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

Hi!
I am wondering if it is possible to check in the skin code if a controller is connected to VDJ. The reason why this could be helpful is that the skin could show different elements based on if a controller is present or not.

Any ideas?
 

Posté Wed 05 Jul 17 @ 10:27 am
get_controller_name : return the name(s) of the controller(s) assigned to this deck

my Skin The Thing Shows the controller-Name for example ;o)
 

Posté Wed 05 Jul 17 @ 10:39 am
And in order to convert it to boolean (true/false) you need to use it like this:

visible = param_equal '`get_controller_name`' 'Pioneer DDJ-SX2'

Note that if you use 2 controllers at the same time the above script will return false even if SX2 is connected.
The reason is that get_controller_name will return both controllers.

In that case you need to type something like this:

visible = param_equal '`get_controller_name`' 'Pioneer DDJ-SX2 + Pioneer DDJ-SP1'
 

Posté Wed 05 Jul 17 @ 12:49 pm
Fantastic! That was the missing link. Thanks a lot Music234 and Phantom!
 

Posté Wed 05 Jul 17 @ 1:08 pm


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