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:
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>
<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>
Posted Mon 14 Feb 11 @ 6:12 pm
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...
Try ..visible=" whatever condition ? true : false"
You must also include another panel to show up when those conditions are not true...
Posted 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)
Maybe I should try absolute values instead of percent? (E.g. 100% = 4096)
Posted Tue 15 Feb 11 @ 1:17 am
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.
Absolute values could be a solution. Let me know if you get somewhere.
Posted 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!)
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!)
Posted 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?
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?
Posted 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...
On controllers you can...
Posted Tue 15 Feb 11 @ 5:34 pm
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.
Posted Tue 15 Feb 11 @ 6:16 pm
@#@$#$@#%###%$%&%^&$$@@$!@$@
Grrrrrrrrrr......
I'll try again...
Thanks!
Grrrrrrrrrr......
I'll try again...
Thanks!
Posted 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"
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"
Posted Tue 15 Feb 11 @ 7:12 pm
Try ..
visible="effect 'Whatever' slider 2 0% ? true : false"
visible="effect 'Whatever' slider 2 0% ? true : false"
Posted 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.
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.
Posted Wed 16 Feb 11 @ 2:05 am
Send me your skin, i will test this.
Posted 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?
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?
Posted Wed 16 Feb 11 @ 11:24 am
No, the funny quotes are for get_actions.
Posted Wed 16 Feb 11 @ 12:28 pm
Use this comand maybe help you.... -->>
pannel visible "deck 1 effect active ? effect slider 2 0%)"
pannel visible "deck 1 effect active ? effect slider 2 0%)"
Posted Wed 16 Feb 11 @ 1:21 pm