Ingreso rápido:  

Forum: VirtualDJ Skins

Tema: skin, script problem

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

aubs123PRO InfinityMember since 2006
HI, I've added a filter on/off light button to my skin, like DJdads dark default one
this is the script I've used

<slider action="deck 1 filter" orientation="round">
<pos x="48" y="276"/>
<size width="21" height="19"/>
<up x="48" y="276"/>
<over x="48" y="276"/>
<down x="48" y="276"/>
<clipmask x="565" y="2323"/>
<fader anglemin="-160" anglemax="+160">
<size width="21" height="19"/>
<mask x="566" y="2284" />
<pos x="563" y="2345" />
</fader>
</slider>


<button action="deck 1 filter 50%">
<pos x="76" y="278"/>
<size width="26" height="18"/>
<down x="16" y="2425"/>
<selected x="+0" y="+0"/>
<up x="16" y="2425"/>
</button>


with the above it ether resets its self when a new song is loaded or if clicked on with the mouse

i use a Denon mc3000 which has a designated filter knob, what i would like is when i turn the filter knob back to the center position it turns the light back off

thanks aubs
 

Mensajes Sun 05 Aug 12 @ 6:21 am
you could try

<button action="deck 1 filter 50% & deck 1 filter 50% ? off : on">

This one should grab your attention a little better though

<button action="deck 1 filter 50% & deck 1 filter 50% ? off : blink 300ms ">
 

Mensajes Sun 05 Aug 12 @ 6:39 am
djjbPRO InfinityMember since 2004
Hi,

I found the same problem and I think it's a controller issue. Your button is off only when the slider is exactly at 50%. Not 49% or 51% so it's very difficult to set the controller slider at 50%. Try the button in a skin with the slider in a skin, then you know if it's working.

I think whe need a marge, but I don't know how.
 

Mensajes Sun 05 Aug 12 @ 2:15 pm
You could map the led as following:
deck 1 get filter & param_smaller 45% ? on : param_greater 55% ? on : off

Haven't tried it since I don't use the built in filter but it should work...
 

Mensajes Sun 05 Aug 12 @ 2:35 pm
aubs123PRO InfinityMember since 2006
thanks for all the help but still cant get it to work

synthet1c
your first suggestion lights it when moved but doesn't turn off
second doesn't do ether

phantom
couldn't get to turn on or off with that ether

djjb
i think you might be right maybe be its just not possible
if i turn the knob on the skin with the mouse and then press the button, it will turn off and set the knob back to the center position so i'm sure that works fine
I've looked at the mapping in the mc3000 file and the filter is just mapped to
"FILTER" action="filter" />

so i cant really give you guys anymore to go on

thanks again for trying to help though aubs

 

Mensajes Sun 05 Aug 12 @ 3:18 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Map the FILTER knob of your controller as
param_smaller 45% ? set 'filter0' 0 & filter : param_greater 55% ? set 'filter0' 0 & filter : set 'filter0' 1 & filter


and in the skin, for the button have this as action..
<button action="deck 1 var 'filter0' ? on & deck 1 filter 50% : off & deck 1 filter 50%">
 

Mensajes Sun 05 Aug 12 @ 4:03 pm
aubs123PRO InfinityMember since 2006
superb that works great, thank you just what i wanted

again to all of you respect, that script mapping just goes straight over my head lol !!

 

Mensajes Mon 06 Aug 12 @ 9:29 am


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