Sign In:     


Forum: General Discussion

Topic: Scripting question

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

I would like to have a script for the crossfader, so that when it's in the center and I hold down for example Z it goes completely to the left and when Z is released returns to the center, same for the right using for example X as the button being pushed.

Can anyone help please?
 

Posted Sat 11 Jun 11 @ 10:21 pm
Try this,
down : execute different actions depending if the key if pressed or released: 'down ? action1 : action2'

Hope that helps
Huey
 

Hey beatbreaker1 I am unsure of how to write the rest of the script though, so I want Z to when held move the crossfader from the center to the left and when released to return to the center, then I want X when held to move to the right on the crossfader and when released to return to the center, I have no idea of how to write script for that? Any suggestions.
 

I don't have vdj in front of me right now, but I'd try something like

"crossfader 0% while_pressed" to make it jump left

and

"crossfader 100% while_pressed" to make it jump right


Hope that helps a bit. If that doesn't work on its own, it might help you fill in the gaps in Huey's example.
 

Short cut cross fader keys,

CTRL+PAGE.DOWN = crossfader -100% Right
CTRL+PAGE.UP = crossfader +100% Left
END = crossfader 50% Center

Good Luck,

Joey.....
 

For keyboard buttons..

Assign Z as
down ? crossfader 0% : crossfader 50%

and X as ..
down ? crossfader 100% : crossfader 50%

Also..
Read this on how to map (assign) a key and additional infos
 

DJ dad that was exactly what it needed, I had a look through your links and wow does my head hurt a bit trying to get around some of the lengths of those scripts, however the more I read and understand the better I will get at it so thank you very much.
 



(Old topics and forums are automatically closed)