Quick Sign In:  

Forum: VirtualDJ Skins

Topic: How to make a visual element change colour when a deck is playing

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

sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
Hi All,

I am trying to make the background of the song title/artist change colour when that deck is playing.. I have read the wiki section on visual elements and it seems to imply that this is possible but I cannot work out how to do it. It appears that I somehow need a VDJScript argument in the form of a "get_" that gives me a numerical value if the deck is playing but I can't find such a thing when searching the list of VDJ script arguments.. Help anyone??

I understand the <off and <on commands - I have that bit set up - so what I need is a VDJ argument that gives me a value if a deck is playing to use as the source - and then I can get it working.. Please can someone help?

Thanks in advance,

sh6397
 

Posted Sat 04 Apr 15 @ 8:39 am
sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
Cancel that!! Worked it out with a bit of trial and error experimenting.. :-D

Thanks everyone though.. :)
 

Posted Sat 04 Apr 15 @ 10:47 am
Please post your solution, so other user with the same problem could find it. ;o)
 

Posted Sat 04 Apr 15 @ 11:26 am
sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
Here goes:

If you have a visual element, the code looks something like this:

<visual>
<pos x="+5" y="+5" />
<size width="458" height="128"/>
<off x="231" y="1995"/>
</visual>

However, if you want that section to change colour you then need to create an image of that section with the colour changed in the .png file for the skin.

Then enter the code that tells it what to show when the condition you will set is true:

<visual>
<pos x="+5" y="+5" />
<size width="458" height="128"/>
<off x="231" y="1995"/>
<on x="539" y="2875"/>
</visual>

The enter the argument that tells it when to change the colour - for me that was when the deck was playing.

The argument that tells the program what to do is the source. Therefore the query you want is source="play" in this situation.

<visual source="play">
<pos x="+5" y="+5" />
<size width="458" height="128"/>
<off x="231" y="1995"/>
<on x="539" y="2875"/>
</visual>

Then specify the type of colour change - as this type of event is also used to operate all the VU meters it has different modes or "types".

For this situation, that type is "onoff".

<visual source="play" type="onoff">
<pos x="+5" y="+5" />
<size width="458" height="128"/>
<off x="231" y="1995"/>
<on x="539" y="2875"/>
</visual>

The code is now complete - now save and import into VDJ :)

It should now all work :)
 

Posted Sat 04 Apr 15 @ 2:15 pm
thanks, well done ;o)
 

Posted Sat 04 Apr 15 @ 2:55 pm
sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
No problem.. Hope it makes sense though - I tried to make it easy to understand (Unlike the wiki's by the way.. took me hours to work it out due to the lack of examples on how to use the code - the wiki has been written from the point of view of someone who already knows how it all works and just needs a hand remembering what all the terms are..

In my opinion, this should not be the case as it doesn't help anyone to have to read it and go through by trial and error trying to figure out how they have made their engines work and how they expect the code to be written..

Just my opinion though.. Thanks to everyone on here who helped yesterday though :)
 

Posted Sat 04 Apr 15 @ 4:04 pm
sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
I have now finalized the skin.. Comments/Recommendations welcome :)

Moderation : Link removed till evaluation. Was not correct anyways.
 

Posted Sun 05 Apr 15 @ 2:18 pm
Your link is not working; seems you upload in the wrong place?!
 

Posted Mon 06 Apr 15 @ 6:55 am
locodogPRO InfinityModeratorMember since 2013
Might not have been cleared yet.
 

Posted Mon 06 Apr 15 @ 7:12 am
djdadPRO InfinityDevelopment ManagerMember since 2005
sh6397 wrote :
I have now finalized the skin.. Comments/Recommendations welcome :)

Center (mixer) panels dont appear when u load the skin. I get an empty area (actually just the Crossfader and the XFader Assign buttons are visible). Can you check the visible="" of your panels and make sure one of them is set as visible ?

 

Posted Mon 06 Apr 15 @ 9:54 am
sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
Not sure what you mean.. It all works fine for me..?

If you load up the standard skin, and then make sure that you are on the audio mixer being visible and then load my skin does it work? I thought that which mixer you saw was down to a section of your settings file not down to the skin...??

Thanks :)
 

Posted Wed 08 Apr 15 @ 7:42 am
sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
Do you mean like this? I haven't changed this at all..

 

Posted Wed 08 Apr 15 @ 8:19 am
Are all the mixer controls in that same "audiomixer" panel and "mixer" group?
 

Posted Wed 08 Apr 15 @ 11:40 am
sh6397PRO Infinity(VDJartnet plugin - QLC+)Member since 2012
yep
 

Posted Wed 08 Apr 15 @ 11:56 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Sorry, your skin cannot pass unless you find the bug with the center panels.
To reproduce, simply delete settings.xml, and choose your skin (without doing anything else with the default one)
 

Posted Mon 13 Apr 15 @ 8:28 pm


(Old topics and forums are automatically closed)