Quick 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
locoDogPRO InfinityModeratorMember since 2013
Did you try?
controller_mapping "Pioneer DDJ-1000" "Training"
 

Posted Fri 11 Sep 20 @ 2:23 pm
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".
 

Posted Fri 11 Sep 20 @ 2:32 pm
You could use one mapping only. You can use a variable to filter the command.

trainingmodevar? Do this : do that

 

Posted Fri 11 Sep 20 @ 4:59 pm
Yes, but VDJ has this command / feature and i'd really like to use it.
 

Posted Fri 11 Sep 20 @ 6:45 pm
NicotuxHome userMember since 2014
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
 

Posted Fri 11 Sep 20 @ 7:37 pm
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...
 

Posted Fri 11 Sep 20 @ 8:57 pm
*bump*
 

Posted Tue 29 Sep 20 @ 2:43 pm
*super duper sad bump please don't ban me i just want existing features in vdj to work*
 

Posted Thu 08 Oct 20 @ 9:27 am
It has been fixed for the next update.
 

Posted Mon 19 Oct 20 @ 10:03 pm
PhantomDeejay wrote :
It has been fixed for the next update.


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

Posted Wed 21 Oct 20 @ 10:48 am
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!!
 

Posted Sun 20 Dec 20 @ 8:03 pm


(Old topics and forums are automatically closed)