Connexion rapide:  

Forum: VirtualDJ Skins

Sujet Just a quick question...

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Is it possible to query an effect slider to create conditional panels?
I'm struggling for hours but I can't seem to get it working....

Here's a snippet of the code:
XML DATA wrote :

<pannel id="GHLE_FILT_LP1" group="FILTMODE" pannel="GHLE_MID_INFO" visible="deck 1 effect 'Whatever' slider 2 0% ? on">
<pos x="766" y="295"/>
<size width="85" height="16"/>
<down x="342" y="4377"/>
</pannel>
<pannel id="GHLE_FILT_HP1" group="FILTMODE" pannel="GHLE_MID_INFO" visible="deck 1 effect 'Whatever' slider 2 50% ? on">
<pos x="766" y="295"/>
<size width="85" height="16"/>
<down x="342" y="4377"/>
</pannel>
<pannel id="GHLE_FILT_DLPHP1" group="FILTMODE" pannel="GHLE_MID_INFO" visible="deck 1 effect 'Whatever' slider 2 100% ? on">
<pos x="766" y="295"/>
<size width="85" height="16"/>
<down x="342" y="4377"/>
</pannel>
 

Posté Mon 14 Feb 11 @ 6:12 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
I havent tried it, but theoretically these panels will show up ONLY when those sliders have reached the EXACT given value.

Try ..visible=" whatever condition ? true : false"

You must also include another panel to show up when those conditions are not true...
 

Posté Mon 14 Feb 11 @ 7:21 pm
I know that the sliders should have the EXACT value (I control the slider's value with a button) but it doesn't work for me...
Maybe I should try absolute values instead of percent? (E.g. 100% = 4096)
 

Posté Tue 15 Feb 11 @ 1:17 am
djdadPRO InfinityDevelopment ManagerMember since 2005
What actions do you use for your buttons to control the sliders? effect slider 1 +5% etc? This will never give you exact values. Use a small textzone to help you see the value. You will notice that you wont get rounded values.
Absolute values could be a solution. Let me know if you get somewhere.
 

Posté Tue 15 Feb 11 @ 8:13 am
Well as a test I tried to map a button action="effect 'Whatever' slider 2 0" and action="effect 'Whatever' slider 2 0%"
None of them worked!

The reason I want to achieve this is because of a nice effect I use frequently and it has 3 different modes.
The 3 modes are controlled via a slider (0-33, 33-66 and 66-100%)
Then, based on the mode the other slider of the effect behaves completely differently and I want to "control" this behavior via pannels.

The ONLY thing I managed until now is to display the 3 modes via a custom visual. (BTW: It took me FOUR stripes to make it working correctly!)
 

Posté Tue 15 Feb 11 @ 3:20 pm
is there no way to do a relative query? I just read over the scripting wiki again and I'm not seeing a way to do it.


in a programming language you would say

if slider is less than parameter (dothis) else (dothat)

`crossfader>50% ? skin_pannel 'mixerright' on : skin_pannel 'mixerleft' on`

is there a way to script it like this?

 

Posté Tue 15 Feb 11 @ 5:18 pm
You can't do a query like this I'm afraid... You can create a query like this: crossfader 0% ? dothis : dothat but you can't create queries < or > at the moment, at least not on skins...

On controllers you can...
 

Posté Tue 15 Feb 11 @ 5:34 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
PhantomDeejay wrote :
Well as a test I tried to map a button action="effect 'Whatever' slider 2 0" and action="effect 'Whatever' slider 2 0%"


This one works here..
effect 'flanger' slider 2 0%
and this one works for the selected
effect slider 2 0%

The absolute values do not work, i'm afraid.

 

Posté Tue 15 Feb 11 @ 6:16 pm
@#@$#$@#%###%$%&%^&$$@@$!@$@
Grrrrrrrrrr......

I'll try again...

Thanks!
 

Posté Tue 15 Feb 11 @ 6:51 pm
LOL...
I guess I got it wrong!

The button action="effect 'Whatever' slider 2 0%" works as it should.
What doesn't work is visible="effect 'Whatever' slider 2 0% ? on"
 

Posté Tue 15 Feb 11 @ 7:12 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
Try ..

visible="effect 'Whatever' slider 2 0% ? true : false"
 

Posté Tue 15 Feb 11 @ 7:55 pm
No luck either....

The funny thing is that I casted the slider normally inside a textzone and I can get it on any type, but it still won't work as a conditional panel term...

So I guess I'll have to find another way to achieve the results I want.
 

Posté Wed 16 Feb 11 @ 2:05 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Send me your skin, i will test this.
 

Posté Wed 16 Feb 11 @ 8:32 am
Youforgot the funny quotes in visible field


I don't have it on my iPhone here but it's that funny looking tick mark... Top left of the keyboard? An accent mark I believe.

That should be inside the quotes for a script action inside a visible tag right?
 

Posté Wed 16 Feb 11 @ 11:24 am
djdadPRO InfinityDevelopment ManagerMember since 2005
No, the funny quotes are for get_actions.
 

Posté Wed 16 Feb 11 @ 12:28 pm
Use this comand maybe help you.... -->>
pannel visible "deck 1 effect active ? effect slider 2 0%)"
 

Posté Wed 16 Feb 11 @ 1:21 pm


(Les anciens sujets et forums sont automatiquement fermés)