Entra:     


Forum: General Discussion

Topic: Need help with making my pad blink when pressed?
Hi team, I could use some help. I’m currently using custom button colors on VirtualDJ 2026 with my Pioneer DDJ1000 controller. At the moment, when a button is pressed on the controller, it simply changes to a brighter color. What I’d like to achieve instead is for the button to start blinking when it’s pressed.
Does anyone have suggestions on how to make this happen? As a test the "Pitch Lock" I currently I'm trying this following script & it does not work query ? blink ? color 'cyan' : color 50% 'cyan' : color 50% 'cyan'
 

Inviato yesterday @ 4:41 pm
Only while pressed ? And solid when released ?

Depends on the Pad action mostly.
Open Pads Editor for the page you want this to be channged, and for the Pad with Push Action .. effect_active, you can write in the Color tab
effect_active ? blink color 'cyan' : color 'cyan' 50% : color 'cyan' 50%

If only when pressed, then there is no easy way. The proper query is down ? but that's for buttons actually, not leds.
For this case, you will have to use a variable and set it to 1 while pad is pressed and 0 when released.
So the Push Action of the pad could be something like ... effect_active & set 'a' 1 while_pressed
and then the led (in Color tab) can be ..
var 'a' ? blink color 'cyan' : color 'cyan' 50% : color 'cyan'

PS. Avoid changing the Mapping actions of the Pads and their Leds. Do the changes in Pads Editor for the Pages you want this to change.