Entra:     


Forum: VirtualDJ Technical Support

Topic: Pioneer DDJ-400 Browse Knob mapping help (Folder expansion and side switching)
Hello, I need help with Virtual DJ (full version) and the Pioneer DDJ-400 controller. I’m trying to configure the BROWSE knob to behave in a specific way, but none of my attempts (including suggestions from AI) have worked so far.
​Here is exactly how I want it to work:
​Navigating Folders: When I'm in the folder tree, turning the knob scrolls through folders.
​Clicking the Knob (Folders): Pressing the knob should expand or collapse the selected folder.
​Smart Switch to Songs: If I am in the final subfolder (or if I press it), I want the focus to automatically jump to the song list so I can scroll through tracks.
​Clicking the Knob (Song List): If I am currently on the song list and I click/press the knob, the focus should immediately jump back to the folder tree.
​Could anyone help me write the correct VDJ Script commands for the BROWSE knob and BROWSE click? Thank you in advance!
 

Inviato Tue 23 Jun 26 @ 10:43 pm
You know that SHIFT+ Browse push opens/close sub-folders, right ?

The closest to what you ask is ..
BROWSE_ENC_PUSH Key Action :
browser_window 'folders' ? browser_enter : browser_folder


Give it a try and let us know in which cases this doesnt work as you d expect.
 

​Thank you very much for your response. Your script works almost perfectly! I can control everything with the knob, except for collapsing folders. Well, I can collapse them, but it behaves a bit strangely.
​For example: I have Folder 1, inside it is Folder 2, and inside that is Folder 3. If I want to collapse Folder 2, the function doesn't work on it directly. However, if I select Folder 1, then that folder and all the subfolders inside it collapse at once. In other words, I have to go up one level to collapse the subfolders inside it. I hope my explanation makes sense.
​Thanks again for your help!
 

This is what I use with my FLX4. This behave closer to Pioneer intent. Hopefuly this can help you somehow.


<map value="BROWSE_ENC" action="var 'pfl_master_hold' ? param_multiply 15 & browser_scroll : browser_scroll" />
<map value="BROWSE_ENC_PUSH" action="holding ? browser_folder : browser_window +1" />
<map value="SHIFT_BROWSE_ENC" action="param_multiply -0.02 & zoom_scratch" />
<map value="SHIFT_BROWSE_ENC_PUSH" action="holding ? browser_folder : browser_window -1" />

<map value="PFL_MASTER" action="var 'pfl_master_hold' ? (up ? (set_var 'pfl_master_hold' 0 : nothing) : (holding ? set_var 'pfl_master_hold' 1 : nothing)) : nothing" />


Since I have a few long playlists, I wanted a quick scroll. Holding the PFL_MASTER (I never use it anyway) is for me a second type of SHIFT
 

You need to decide what happens in the following case...
A Folder/List has sub-lists but also Tracks inside that.
If you press the Browse knob, what should VDJ do ?

Case A, Expand the sub-folders of the Folder. In this case, you need some other button/combination to tell VDJ to set focus to the Tracks of this folder.

Case B. If folder has Tracks prefer to set focus to the Tracks. In this case, you need some other button/combination to perform the open/close sub-folders.

So, which case you need to be the default ? the secondary should be put in combination of SHIFt or other modifier.

EDIT. After carefully reading your request, there is indeed a need of a new action. Request has been forwarded to Developers.
 

Thank you very much VDJ is the king ❤️