Sign In:     


Forum: VirtualDJ Technical Support

Topic: How do i load a controller mapping using VDJScript?

This topic is old and might contain outdated or incorrect information.

I've built a mapping for training that removes the BPMs from my DDJ-1000's display and disables some other things as well. I've simply called this mapping "Training" (the file name is 'Pioneer DDJ-1000 - Training.xml').
How can i load this using VDJScript? I tried this and some variations, none of which worked:
controller_mapping "DDJ1000" "Training"
 

Posted Fri 11 Sep 20 @ 1:37 pm
Did you try?
controller_mapping "Pioneer DDJ-1000" "Training"
 

locodog wrote :
Did you try?
controller_mapping "Pioneer DDJ-1000" "Training"


That didn't work, but i also didn't expect it to, because the command is supposed to take the name used in mappings for the controller as the first argument, which is "DDJ1000".
 

You could use one mapping only. You can use a variable to filter the command.

trainingmodevar? Do this : do that

 

Yes, but VDJ has this command / feature and i'd really like to use it.
 

Just tested the function "controller_mapping" (never did) and it works fine even with foreign chars (case insensitive)

Standard device & mapper tested OK:
controller_mapping 'Keyboard' 'factory default'
controller_mapping 'Keyboard' 'Mapping personnalisé'
controller_mapping 'Keyboard' 'Mapping personnalisé (1)'
Custom device & mapper tested OK:
controller_mapping 'autoexec' 'autoexec - '
controller_mapping 'autoexec' 'AutoExecs'

as long as device is detected, you can select them from the mapping page (of course)
and device is connected

For instance: FREESTYLER Midi Device declare as
<device name="FREESTYLER" author="PhantomDj" blocktransfer="yes" version="802" description="Freestyler MIDI Remote Control" type="MIDI" drivername="Freestyler" ...
and appears as
"Freestyler MIDI Remote Control"

I Created a Pioneer DDJ-1000 - Training.xml that appears but badly can't be selected (not any controller here)
which is <mapper device="DDJ1000"

Pioneer DDJ-1000 device="DDJ1000" appears as "Pioneer DDJ-1000" in the list of compatible controllers
The "Training" map as selectable map in "Pioneer DDJ-1000"
thus unless you created both a device description="DDJ1000" (not as the internal name of the controller, or the internal device) with a mapper named "Training"
controller_mapping "DDJ1000" "Training" won't work

locodog gave you the right command
 

controller_mapping "Pioneer DDJ-1000" "name that shows in the mapping dropdown"

this seems like it should be correct, because when i assign it to a custom button in VDJ's skin, it lights up when i have a mapping with that name/description loaded, but it doesn't actually do anything when i press it...
 

*bump*
 

*super duper sad bump please don't ban me i just want existing features in vdj to work*
 

It has been fixed for the next update.
 

PhantomDeejay wrote :
It has been fixed for the next update.


Thanks Atomix Team =) Will report back here once the update is out.
 

Wanted to come back to this and confirm that it is indeed working.
The correct syntax is just like i wrote in the initial post:
controller_mapping "DDJ1000" "Training"
Thank you dev team!!
 



(Old topics and forums are automatically closed)