Quick Sign In:  

Forum: VirtualDJ Skins

Topic: Show FX sliders only when exist

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

djdadPRO InfinityDevelopment ManagerMember since 2005
I found a way to display the sliders of an effect, only if those exist, and thought i should share with you.
Here is the code....


-----Panels for FX Sliders----
<panel id="fxprmA1off" group="fxprA1" visible="deck 1 get effect_slider_name 0 & param_equal 0 ? true : false">
<pos x="295" y="248"/>
<size width="55" height="46"/>
<down x="+0" y="+0"/> (graphics with no slider drawn / empty)
</panel>
<panel id="fxprmA1on" group="fxprA1" visible="deck 1 get effect_slider_name 0 & param_equal 0 ? false : true">
<pos x="295" y="248"/>
<size width="55" height="46"/>
<down x="+0" y="+0"/>
</panel>
<panel id="fxprmA2off" group="fxprA2" visible="deck 1 get effect_slider_name 1 & param_equal 0 ? true : false">
<pos x="350" y="248"/>
<size width="55" height="46"/>
<down x="+0" y="+0"/>
</panel>
<panel id="fxprmA2on" group="fxprA2" visible="deck 1 get effect_slider_name 1 & param_equal 0 ? false : true">
<pos x="350" y="248"/>
<size width="55" height="46"/>
<down x="+0" y="+0"/>
</panel>

<slider panel="fxprmA1on" action="deck 1 effect slider 1" orientation="round" >
<pos x="307" y="248"/>
<size width="31" height="31"/>
<clipmask x="969" y="3039"/>
<fader>
<pos x="10" y="3039" nb="29" smooth="true"/>
</fader>
</slider>
<textzone panel="fxprmA1on" deck="1">
<pos x="300" y="278"/>
<size width="45" height="15"/>
<text font="ARIAL GREEK" size="14" color="#FFFFFF" weight="bold" align="center" format="`deck 1 get effect_slider_name 0`"/>
</textzone>

<slider panel="fxprmA2on" action="deck 1 effect slider 2" orientation="round" >
<pos x="307+55" y="248"/>
<size width="31" height="31"/>
<clipmask x="969" y="3039"/>
<fader>
<pos x="10" y="3039" nb="29" smooth="true"/>
</fader>
</slider>
<textzone panel="fxprmA2on" deck="1">
<pos x="300+55" y="278"/>
<size width="45" height="15"/>
<text font="ARIAL GREEK" size="14" color="#FFFFFF" weight="bold" align="center" format="`deck 1 get effect_slider_name 1`"/>
</textzone>
 

Posted Fri 08 Mar 13 @ 12:38 am
nice one bob! I wanted thiss a while ago. Is it also possible with buttons?
 

Posted Fri 08 Mar 13 @ 11:47 am
It's all Greek to me (no pun intended) but very cool!!
 

Posted Fri 08 Mar 13 @ 11:52 am
Dodge57PRO InfinityMember since 2009
thanks !!!!!
 

Posted Fri 08 Mar 13 @ 11:54 am
djdadPRO InfinityDevelopment ManagerMember since 2005
synthet1c wrote :
nice one bob! I wanted thiss a while ago. Is it also possible with buttons?


I think so.
Just replace get effect_slider_name with get effect_button_name

Notice that slider_name start counting from 0 instead of 1.
The buttons my start from 1 though. Havent tried that.

 

Posted Fri 08 Mar 13 @ 3:35 pm
That's what I needed.....Have to do some rework.
Thanks ;o)
 

Posted Sat 09 Mar 13 @ 2:02 am
Babis,

Is there any way to get this to work for multiple effect slots? I am wanting three slots with the name's under the sliders. It seems as though you can only use `get effect_slider_name #` on the maineffect or the first slot, do you know another way of referencing other slots?

I tried `get effect_slider_name # #` hoping that the first parameter was the slot and the second was the slider but unfortunately it doesn't work.

cheers
 

Posted Sat 13 Jul 13 @ 10:40 pm
djdadPRO InfinityDevelopment ManagerMember since 2005
hmm havent tried that (with effect slots), but try get_effect x slider_name y, where x is the effect slot number and y the slider number
 

Posted Sun 14 Jul 13 @ 12:38 am
No joy unfortunately, i'll have to make a million pannels if I want it now :-(
 

Posted Sun 14 Jul 13 @ 12:52 am
Hello, I am not happy about digging this post up, but I have some questions about this :)
First of all, why the first panel is set "deck 1 get effect_slider_name 0..." and not like "deck 1 get effect_slider_name 1" ? Does effect_slider_name 0 script, is the first sliders' name ?
Also when I create the code the "off" panel doesn’t seems to work. If I click on the place where the panel should be, when the slider doesn’t exist the slider appears immediately. Why this is happening? I think the other panel which is set when the slider isn' t there, isn't working properly. Am I right?
 

Posted Thu 12 Sep 13 @ 10:58 pm
there is no underscores in it, also the reason it starts at 0 is that it must be zero indexed as computers start counting numbers at 0 not 1... PS I think I found the reason it didn't work on my skin, now to try it again ;-)
 

Posted Fri 13 Sep 13 @ 1:14 am


(Old topics and forums are automatically closed)