Sign In:     


Forum: General Discussion

Topic: Script School - Page: 55
In the end, I found that I just needed to set deck all to PLAY_PAUSE, CUE, MOTOR_JOG, MOTOR_TIMESTAMP, PITCH, and SHIFT.
 

Neat Script to switch back and forth from normal songs view to linked tracks view

browser_window 'songs' ? show_splitpanel 'folders' off & show_splitpanel 'sideview' on & deck 1 has_linked_tracks & wait 33 ms & sideview_sort 'bpm' & browser_window sideview & browser_scroll 'top' & browser_scroll +1 : show_splitpanel 'sideview' off & browser_window 'songs'
 

Hello, gentlemen. I have a question, and I'm hoping the VDJ-script geniuses can help me. I'm writing a huge, long script. Let's say I'm assigning it to a pad or a button. I need the script to stop running when I click it again, so I can roll back all the changed values ​​to their state before the script (say, eq). How can I make the script stop running and go to the rollback block? Thanks. :)

Здравствуйте господа. Есть вопрос, надеюсь гении vdj-scripts смогут мне помочь. Я пишу огромный, длинный скрипт. Допустим назначаю его на pad или кнопку. Мне нужно, что бы при повторном нажатии скрипт перестал выполняться и я мог откатить все измененные значения на их состояние до скрипта (допустим eq). Как заставить скрипт перестать выполняться и перейти к блоку для отката? Спасибо. :)
 



Hello! Im trying to add a script that checks for a certain cue, deletes it if it exists and replaces it if it doesn't exist. This is so a cue teleport doesn't always happen. My current attempt at the code has me doing this:

has_cue 3 ? delete_cue 3 : set_cue 3

this works, but places the cue at the APOI which i dont want, i need it placed in a specific spot. according to the vdj script manual, you should be able to measure in beats by adding bt to the end of a number, and the set_cue command uses 2 parameters, 1st is the cue number, 2nd is the position; but

has_cue 3 ? delete_cue 3 : set_cue 3 149bt

does absolutely nothing. if i remove the bt, it places it at a random point in the song. However, adding a % or ms to the second number does indeed work, I just don't want to calculate how many milliseconds the specific beat in the middle of the track is...

Is there anyone that could help me?
 

has_cue 3 ? delete_cue 3 : set_cue 3 149 bt

Seems odd that it needs a space between number an unit but it does for this case, maybe a typo on the devs part.
 

I know this is simple as hell but i'm not great at scripting - I'm trying to make a set of buttons to create lists and name them e.g. Dinner, Special songs, Party etc

I've got as far as add_list but I can't figure out how to script the change of text in the name list dialog box that pops up? Bonus if it closes the dialog window after.. Help
 

I can't see a good reason to make a list/vfolder with script. Making a list of a given name is a one time thing, the time spent editing the button so that it makes a list of NAME is time you should just make the list by conventional means.
 

Hey guys, I am trying to change the stems FX pad functionality. The instrument echo out pad I want it to do a vinyl brake on all instruments leaving vocals only. I I’m unable to get this to work. I want just a quick .25-.2sec brake on instruments leaving the track running acapella.
Please help!
 

padfx 'vinylbrake' 50% 50% 50% 'stemfx:melorhythm'
 

I want to create a button that toggles on and off the AutoSearchDB function. I searched for auto, search and db and couldn't find the correct function. Can someone help with a simple script? Thanks.
 

Not at the computer to verify but:


setting "autoSearchDB" "on"


Or (set only for the session instead of permanent)

setting_setsession "autoSearchDB" "on"


Switch the "on" to whatever the word is in the settings list if that doesn't work.

I actually do something more for a similar case (the toggling of auto BPM on load, to go between always and no instead of smart and no), so it may require more to toggle instead of switch on, but that would be the start.
 

DJ VinylTouch wrote :
Not at the computer to verify but:


setting "autoSearchDB" "on"


Or (set only for the session instead of permanent)

setting_setsession "autoSearchDB" "on"


Switch the "on" to whatever the word is in the settings list if that doesn't work.

I actually do something more for a similar case (the toggling of auto BPM on load, to go between always and no instead of smart and no), so it may require more to toggle instead of switch on, but that would be the start.


Thanks. Neither seem to be working for me. I tried On/off and yes/no. I also tried both setting and set_session quotes/no quotes.

I asked ChatGPT and it said use toggle 'autosearchdb'. That didn't work either. I'm using these scripts on a button, not a pad.
 

Can I get a shortcut script to turn the censor audio on/off please?
 

djdonn wrote :

Thanks. Neither seem to be working for me. I tried On/off and yes/no. I also tried both setting and set_session quotes/no quotes.


I'm pretty sure this method works for settings, it's just how it's being invoked that has to be worked out (you can check that it works by opening the settings, searching for the value and making sure it is updated).

ChatGPT is going to be of little use here - vdjscript is a language I'm pretty sure it's not trained on, so you would have to feed it context of correct usages to get better results, and by time you do that, you can probably work out the script yourself (in your case the script should be one of the simpler ones).

@locodog would probably chime in soon and give you the right thing - I would need time to try it out with VirtualDJ running.

@thesoundinsurgent - this advice applies for you as well.
 

Tried setting_setsession "lyricsCensorAlsoAudio" and I get nothing, tried adding "on/off" and still no change
 

djdonn wrote :
DJ VinylTouch wrote :
Not at the computer to verify but:


setting "autoSearchDB" "on"


Or (set only for the session instead of permanent)

setting_setsession "autoSearchDB" "on"


Switch the "on" to whatever the word is in the settings list if that doesn't work.

I actually do something more for a similar case (the toggling of auto BPM on load, to go between always and no instead of smart and no), so it may require more to toggle instead of switch on, but that would be the start.


Thanks. Neither seem to be working for me. I tried On/off and yes/no. I also tried both setting and set_session quotes/no quotes.


What do you expect to happen when the script "works" ?

The script setting 'autosearchdb' can be used to toggle the setting.
But the setting itself does not have any immediate effect.
It's responsible only for what happens when VirtualDJ sees new tracks.
Therefore for the most part, doesn't make sense to toggle it on a regular basis either.

So, what are you trying to achieve ?
 

the SOUND INSURGENT wrote :
Tried setting_setsession "lyricsCensorAlsoAudio" and I get nothing, tried adding "on/off" and still no change


setting 'lyricscensoralsoaudio' works fine here

Now keep in mind that setting_setsession is a tricky action to use.
The action DOES change the setting it's asked to change.
HOWEVER if you open settings to check the given setting, it appears that it has not been changed.
That's because the setting has been changed temporarily (in memory) for this session
VirtualDJ settings window on the other hand changes the settings permanently (or simply put, any change made inside the settings window will get written on settings.xml)

So, setting_setsession 'lyricscensoralsoaudio' 'yes' actually works if you just try to use it's functionality to determine if works or not!
 

Ok Thanks Im fine with that, now I need the button to light when its on please?

EDIT, got the button to light up!!
 

For setting_setsession it's not possible at the moment
Maybe it can be added. I don't know.
 

Quote :

What do you expect to happen when the script "works" ?

The script setting 'autosearchdb' can be used to toggle the setting.
But the setting itself does not have any immediate effect.
It's responsible only for what happens when VirtualDJ sees new tracks.
Therefore for the most part, doesn't make sense to toggle it on a regular basis either.

So, what are you trying to achieve?


When I drag a song into VDJ to listen to it and look at its properties through tag editor, it's typically from a drive that is not part of my main VDJ database. If I leave the setting set to yes, it creates a VDJ folder on that drive and tries to load it every time I start vdj. I don't want that. So, if I can toggle off the autosearchdb function before I drag songs in, I don't have to worry about the vdj folder being created on the drive I don't use.

I've tried using the 'ignore drives' calculator but that has never seemed to work, or I'm misunderstanding what its actual function is.

I tried your scripts, then looked at the setting in the options box but it never changed. To refresh, I'd go out of the options box then back in to look at the setting but still no change.
 

100%