Ingresar:     


Forum: General Discussion

Tópico: Mapping led for video effects?

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

I did a search but couldnt find any examples in the wiki for led mapping. I am hoping to have the led on when a certain video effect is activated and off when it isnt. Please can anyone help with the command for this? Is it something like

video_effect "RandomVideoTransition" active ? on : off
 

Mensajes Sun 04 Dec 11 @ 8:52 pm
 

Its mappable. I just need to know the script - the one above doesnt work.
 

It is the same command for activating the effect. The statement returns True (On) when activated and False (Off) when not.
 

The command I am using to activate is

device_side left ? video_fx_select "RandomVideoTransition" & video_fx : device_side right ? video_fx_select "Boom_Auto" & video_fx

This works great for the effect but the led just stays on if I copy this into the LED part of the mapper.
 

you cant use "&" in a query, you neen to change it to a "?" and have the response, for it you are using a formula of

query 1 ? query 2 ? if both are true : if 1 is true but 2 is false : if both are false

so for your example

video_fx_select "RandomVideoTransition" ? video_fx ? on : off : off

to split it into device sides

device_side left ? video_fx_select "RandomVideoTransition" ? video_fx ? on : off : off : video_fx_select "Boom_Auto" ? video_fx ? on : off : off
 

Did u try this - you dont have any device_side right so this isnt going to work.

Note I am not trying to change the script for activating the effects - that works fine - gives me randomvideotrans on left and boomauto on right. My question is just for the leds. When randomvideotrans effect is enabled I want left led on and when boomauto is enabled I want right led on.
 

nah I havn't tried it, but if you query the device side of your controller, in the false part, it is assumed to be the right side as it is opposite, i'll boot up and give it a go if you like

device_side left ? action for left side : action for right side
 

this works fine

device_side left ? video_fx_select "negative" ? video_fx ? on : off : off : video_fx_select "Boom_Auto" ? video_fx ? on : off : off

enjoy
 

Excellent - thanks heaps!!
 

Hmm ok that doesnt quite work because every time I select another one it turns off the first one, but I'm looking to have multiple video effects running at once with the leds illuminating which effects are active. Something not quite right - any ideas?
 

you could set up a few variables, to do it, but first I need to know what "randomvideotrans" is ? I can't find a transition effect of that name... is it a transition changing shift, something like

video_transition_select +1 & video_transition

that will swap the transition everytime you press the button and do the transition, or I could create a "randomiser" that will have a large enough pattern that you will never know what is coming next..

or did you mean you want a different led dedicated for each of your transitions or effects so if you hit a button it will do the specific transition or effect and the light will come on, and stay on if activated

I also just tried it with a transition and it wanted to work only left side for deck 1 and right for deck 2, but again I can probably get around that, I just need to know the specifics of what you want and will set and query variables accordingly, but you will either need to use only the controller to change or, go into your skin xml and quickly edit it to match the controller mapping.

So I need to know

  • what method you want
  • which fx you use
  • which transitions you use
  • how you want the leds to operate with fx
  • how you want the leds to operate with transitions

I think it will be set something like this.. I'll seperate it to device sides later

ONINIT - set '$negitive' 0 & set '$boom' 0
button 1 - var '$negitive' 1 ? set '$negitive' 0 & video_fx_select "negative" & video_fx : set '$negitive' 1 & video_fx_select "negative" & video_fx
button 1 - var '$boom' 1 ? set '$boom' 0 & video_fx_select "boom_auto" & video_fx : set '$boom' 1 & video_fx_select "boom_auto" & video_fx
reset button - set '$negitive' 0 & set '$boom' 0 & video_fx_clear

then the leds will respond to the variables not whether there is an effect selected and active, but you woud need a button to cancel all effects and all transitions that is why I need all of them so they can be included.

Also pictures tell 1000 words..
 

Stop ... and look at the basics please ... no reason to make this more complicated then it needs to be.

The action for activating a specific video effect is --

video_fx_select "[Favorite Effect Name Here]" & video_fx

Unlike the audio effects where you can simply state the effect as part of the activate statement - e.g. - effect "Flanger" active

In my original reply I was talking about audio effects and didn't pay attention to your post being on Video Transition or Video Effects.

So, you are using to turn ON/OFF your effects ...

musicalcheers wrote :
device_side left ? video_fx_select "RandomVideoTransition" & video_fx : device_side right ? video_fx_select "Boom_Auto" & video_fx


As synthet1c suggested you could add some variables to the statement to control the LEDs - but a problem will occur if you turn OFF or ON the effects by using a mouse via the skin.

device_side left ? video_fx_select "RandomVideoTransition" & video_fx & toggle "randomON" : video_fx_select "Boom_Auto" & video_fx & toggle "boomON"

Then for the LED -- device_side left ? var "randomON" : var "boomON"

** I haven't tested this yet ... but it should work :)


Unfortunately right now there is not a more simple way of testing for a video effect or transition as being the one ON/OFF to make it as easy as the audio effects. Maybe in VDJ8 we might have something ? Will have to see.

 

I was thinking you could just change the skin mapping aswell, then just not use the browser video fx section because that isn't mappable, but that is why there is a reset button to set everything back to zero and turn everything off, but to be able to query whether an effect is on or off would be great, as it has caused problems like this in the past for other users.

And this is a toggle button script chris, but it also gives you control to set the variable how you want for the reset button
var '$boom' 1 ? set '$boom' 0 : set '$boom' 1
 

synthet1c wrote :
And this is a toggle button script chris, but it also gives you control to set the variable how you want for the reset button
var '$boom' 1 ? set '$boom' 0 : set '$boom' 1


synthet1c - I know the scripting language :)

 

Is it specifically for the random video transition effect you need this? As djcel has kindly made source available I could easily modify the plugin so that it sets a variable automatically when it's active and unsets it when it's not.
 

OK heres the full story which I should have started with but thought if someone could give me the easy answer for one video effect then I could figure it out from there but anyways...

VDJ 7.0.5 with VMS4 and dicers using djdads 1600X900 4 deck video skin with 1920X1080 secondary video output in a window controlled using Windows Manager, and djdads vms4 mapper v2.0 (thanks heaps djdad btw - u are a legend).

Have scripted 8 buttons (four on left deck and four on right deck) to activate 8 different video effects (and slider settings) when pressed (using script above) which works perfect and does exactly what I want it to do. Problem is when I have five or six video effects activated at once (firetext and randomvideotransition pretty much always activated also), it is difficult to see which ones are activated. Was hoping to make the activated video effects to have the led lit and the not activated effects to have leds off.

I do feel a little better that there wasnt an easy answer though - just couldnt get my head around making this work.

OK so I'm thinking if I assigned all the video effects with variables, I could also write a script to turn any off that are on as video_fx_clear is not an option if you are using firetext or you have to load templates, etc back in again and select all the messages and resend every time.
 

but which fx did you want assigned to what button, if you give me a list, it should be easy to script, until vdj8 comes out anyway, but if you want to have a go, the script above revolves around individual buttons to turn on/off the specific fx, a button to cancel all the fx, and set all the variables back to 0, and oninit to resert everything on startup, so it starts fresh everytime and the variables are in line with the fx.

ONINIT -
set '$negitive' 0 & set '$boom' 0 & set '$strobe' 0 set '$text2d' 0 & video_fx_clear

button 1 negative/strobe -
device_side 'left' ? var '$negitive' 1 ? set '$negitive' 0 & video_fx_select "negative" & video_fx : set '$negitive' 1 & video_fx_select "negative" & video_fx : var '$strobe' 1 ? set '$strobe' 0 & video_fx_select "strobe" & video_fx : set '$strobe' 1 & video_fx_select "strobe" & video_fx

button 2 boom auto/text2d -
device_side 'left' ? var '$boom' 1 ? set '$boom' 0 & video_fx_select "boom_auto" & video_fx : set '$boom' 1 & video_fx_select "boom_auto" & video_fx : var '$text2d' 1 ? set '$text2d' 0 & video_fx_select "text2d" & video_fx : set '$text2d' 1 & video_fx_select "text2d" & video_fx

reset button -
set '$negitive' 0 & set '$boom' 0 & set '$strobe' 0 & set '$text2d' 0 & video_fx_clear

The leds are just

LED 1 negative/strobe - device_side 'left' ? var '$negative' 1 ? on : off : var '$strobe' 1 ? on : off

LED 2 boom auto/text2d - device_side 'left' ? var '$boom' 1 ? on : off : var '$text2d' 1 ? on : off


And yes to your question, you can script
set '$negitive' 0 & set '$boom' 0 & set '$strobe' 0 & set '$text2d' 0 & video_fx_clear & video_fx_select "firetext" & video_fx & set '$firetext' 1
 

Thanks heaps again guys. Cstoll's script works great using the toggle commands. I dont change video effects via mouse so should be sweet doing it that way.

btw if you are using firetext forget about using the video_fx_clear statement altogether - its not worth the hassle of entering everything in again when it restarts.
 



(Los tópicos y foros antiguos son automáticamente cerrados)