Sign In:     


Forum: General Discussion

Topic: Keyboard Shortcut - Page: 1

This part of topic is old and might contain outdated or incorrect information

Back in VDJ 5.xx, I created many keyboard shortcuts to play specific clipbank videos when typing a certain keyboard key. They were always several steps that were cumbersome to create. For example, this is what I had to enter if I wanted the F5 key to play the 4th sample in the clipbank called "F KEYS":

<sc key="f5" action="video_select_fx" value="F KEYS" />
<sc key="f5" action="video_fx_button" value="4" />
<sc key="f5" action="video_fx" />

Is there a simpler way of doing this in version 7.xx?

 

Posted Tue 28 Jun 11 @ 5:27 pm
open vdj -> go to setup -> mappers -> key learn -> action

then use "&" to set multiple actions on a key
for example
sampler 1 play_stop & sampler 2 play_stop & sampler 3 play_stop ...
thats all
 

OK - one more question:

Once I do this for approximately 30 keys, can I just copy the text from the shortcuts XML file and paste into my other VDJ laptop to duplicate the shortcuts over there?

 

the script engine and coding has changed since V.5 not you need to map the buttons of the effect, I think it will need to be something like

effect "clipbank" button 1 (for the first clip)

and yes if you copy your keyboard mapping xml to another computer they will also work there, it's the same for midi
 

Could you please clarify?

For example, If I wanted the Learned Key to be F5, then what would I type in the ACTION field for playing the 4th clip in the clipbank entitled "F KEYS"?
 

video_fx "clipbank" button 4

sorry I forgot it was a video effect
 

OK, so just to clarify...

Building clipbanks would be the only way of assigning a video file directly to a keyboard key, correct? Is there a way of assigning a keyboard shortcut to directly play a video file without building clipbanks?

 

If I have about 40 keyboard shortcuts assigned directly to assorted clipbank clips, wouldn't I need to "de-select" any active clip as the first step before selecting a new clip? If not, then there would be the potential of several clips from different banks running simultaneously, which in the past has created problems, correct?

What would the script be to de-activate all current video effects?
 

you can only use 1 video effect at a time, and it has to be selected, so "video_fx active off" should do it
 

OK, so this is the ACTION that I have specified for key F1:

video_fx active off & video_fx "CB Keyboard F1-F12" button 1

where CB Keyboard F1-F12 is the name of my clipbank.
When I hit F1, nothing happens. Also, under the ACTION LEARN field, it says Syntax error: 1

What am I doing wrong?
 

I would have thought "video_fx "clipbank" button #" would do it, as you should just need to allocate the F# keys to individual clipbank numbers, I'm not sure why you are referring to "CB Keyboard F1-F12" in the script.... example

f1 = video_fx "clipbank" button 1
f2 = video_fx "clipbank" button 2
f3 = video_fx "clipbank" button 3 etc...


 

I am refering to "CB Keyboard F1-F12" as the name of the clipbank DLL, which matches the folder name where those clips are kept. Remember... I have about 15 different clipbanks, so this is just good housekeeping. It's never been a problem before.

 

oh okay... I have never actually used it, I was just guessing it works that way... sorry LOL
 

Well, since not to many people seem to be interested in this, I experimented for some time. Here is the exact string to enter that works:

video_fx_active off & video_fx_select "CB Keyboard F1-F12" & video_fx_button "1" & video_fx


Synthetic - the script you suggested only selects the clip.... it does not play it. You have to add video_fx to actually activate it.
 

Assuming the effect is active wouldn't hitting a button with your script turn it off then?? So I think Syn's script was assuming the effect was active already which makes sense.


Huey
 

Yes - you would want any active effect off before starting anew one. Or else you risk having multiple effects running simultaneously, which has been unstable in the past.

I've got a unique use... I have about 15 different clipbanks each with 12 clips, and I'm trying to activate and play them instantly by assigning them to one keyboard key.
 

Update: The correct action script is actually as follows:

video_fx_active off & video_fx_select "CB Keyboard F1-F12" & video_fx_button 1 & video_fx

Note that there should be no quotes around the button number.

However, when I implement this for all 12 buttons on any given clip bank, I have to hit the same button again to stop the clip before I can select another clip. In other words, I cannot hit F1 to play one clip, and then F2 directly for another clip. I have to hit F1, F1 again to stop, then F2. I don't understand why this is the case, since every script starts with de-activating any currently running video effect.

Anybody know how this might be fixed??

 

what happens if you drop or change "active"

video_fx off & video_fx_select "CB Keyboard F1-F12" & video_fx_button 1 & video_fx

video_fx active off & video_fx_select "CB Keyboard F1-F12" & video_fx_button 1 & video_fx
 

If I drop the "active", then it switches to the next selection immediately, but only plays the next selection for a fraction of a second, and then goes black. As if something shut it down immediately after starting.

 

there is two there, did you try them both? the reason it only flashed for a fraction of a second is you start then at the end of the string turn it off again, that's how long it takes to get to the end of the script

I'm still not sure why you need to turn it off at the start, as when you change fx it should automatically shut off any fx running, if your command shuts off clipbank when your on clipbank use that as a variable

video_fx_select "CB Keyboard F1-F12" ? video_fx_active on ? video_fx_button 1 : video_fx_select "CB Keyboard F1-F12" & video_fx_button 1 & video_fx

not sure if the bold will be correct, but you can leave it out if you need

this is asking: if the clipbank is selected (?) and video fx activated (?) only press the button, however (:), if a different effect is selected, choose clipbank, hit the specified button and activate the effect

 

38%