Posts: 588
Threads: 133
Joined: Aug 2006
These are the commands I have running when my template loads. I'm trying to hide one volume slider and keep the other visable depending on the zone that is selected. My problem is you can see both volume sliders for a second when the template loads. Is there a way to stop this.
Also, is there a way to achieve the same results with only one volume slider?
If System::Equals(%(GVar:ZoneNum), 1)
vol z1::Hide/Show(True)
vol z2::Hide/Show(False)
End
If System::Equals(%(GVar:ZoneNum), 2)
vol z1::Hide/Show(False)
vol z2::Hide/Show(True)
End
SampleCoverArtBrowser::SetSortOrder(By Artist)
Posts: 40,483
Threads: 491
Joined: Aug 2002
Set them initially invisible in the slider's base attributes tab. That way they'll stay hidden until you explicitly show them on load.
Dean Roddey
Explorans limites defectum
Posts: 588
Threads: 133
Joined: Aug 2006
Is there a way to do this with one slider?
Posts: 40,483
Threads: 491
Joined: Aug 2002
There's no way to change the field association except during loading of a template or overlay, so it wouldn't be too easy.
Dean Roddey
Explorans limites defectum
Posts: 3,473
Threads: 156
Joined: Jun 2005
06-27-2007, 09:00 AM
(This post was last modified: 06-27-2007, 09:13 AM by sic0048.)
I realize this thread is old, but if you haven't used global variables for this, then this post still applies. Basically you can use the global variables and XLAT the vol slider to the global variable so that it shows the status of that selected zones volume.
For example, in my set up I have one main audio template and it shows the status of my B&K CT600 whole house system depending on what zone is currently selected.
The normal power field is ct600.ZoneAPower for the "A" zone. I use a check box that is associated with driver "ct600", field "ZoneAPower" and then XLAT it on the main template background (not the XLAT tab in the widget) to be "Zone %(GVar:Zone) Power" Don't forget you have to name the widget for it to show up in the template XLAT tab. I have my GVar to be set for "A", "B", "C", "D", etc depending on the zone selected. That way the system sees "ct600.Zone %(GVar:Zone) Power" and if Zone B is selected it reads it as "ct600.Zone B Power" when the Global Variable inputs the current zone "B". This is the format that the ct600 is looking for "ct600.ZoneBPower" and the widgit will display the current setting (True or False) AND allow you to change it normally - off to on, on to off.
Volume is the same. Volume field is normally "ct600.ZoneAVolume" and I XLAT that to "ct600.Zone %(GVar:Zone) Volume" on the main template. Then it shows the volume of the currently selected zone with just one volume widget and allows you to adjust the volume as well.
If you are already using Global Variables for this, then hopefully this post can help the next guy when they are searching the forums.
Brian - a long time user that rarely messes with the system now
Other systems used:
SageTV w/ cablecard tuner & multiple extenders for viewing
BlueIris and IP cameras for CCTV
Incredible PBX for home phone