Control Variable Image "extensions"

Posted on
Mon Jun 15, 2015 8:10 am
brian.vanheesch offline
Posts: 17
Joined: May 05, 2014

Control Variable Image "extensions"

Ability to add any "extension" other than just "true". For example:

A variable "house_mode" may have values "morning", "daytime", "evening", "sleep", etc.

control page images for variables could be:

HouseMode.png (default if value does not match)
HouseMode+morning.png
HouseMode+daytime.png
HouseMode+evening.png
HouseMode+sleep.png

Today, I have an army of variables and a trigger trying to maintain some assembly of order.

isHouseModeMorning
isHouseModeDaytime
isHouseModeEvening
isHouseModeSleep

Then set 4 controls on super imposed on top of each other linked to the 4 variables; whereby only 1 will be true and has a "+true" image that actually has something (the rest are blank transparencies).

Am I missing something? Is there an easier way today?

Posted on
Mon Jun 15, 2015 8:21 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Control Variable Image "extensions"

You can do exactly what you're asking for already.

I think you need HouseMode+ to exist as your base value, then just create exactly what you've said.

Posted on
Mon Jun 15, 2015 9:02 am
brian.vanheesch offline
Posts: 17
Joined: May 05, 2014

Re: Control Variable Image "extensions"

Then this post needs to move to the bug pile.

I have a variable "houseMode" and its value is current "daytime" (all values are lowercase).

Code: Select all
/Volumes/Indigo 6/IndigoWebServer/images/controls/variables
$ ls -l BVHHouse*
-rw-r--r--@ 1 brianvanheesch  staff  17249 14 Jun 19:47 BVHHouseMode+breakfast.png
-rw-r--r--@ 1 brianvanheesch  staff  17249 14 Jun 19:39 BVHHouseMode+daytime.png
-rw-r--r--@ 1 brianvanheesch  staff  17249  8 Jun 08:31 BVHHouseMode+evening.png
-rw-r--r--@ 1 brianvanheesch  staff  17249 10 Jun 17:33 BVHHouseMode.png

But this is in the logs:
Code: Select all
undefined page requested "http://XXX.XXX.XXX.XXX:8176/images/controls/variables/BVHHouseMode+true.png

Posted on
Mon Jun 15, 2015 9:23 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Control Variable Image "extensions"

To be clear, you need a file called "BVHHouseMode+.png" as well.

Then you can have BVHHouseMode+whatever.png

The first file name is critical for custom image heuristics to work properly.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Jun 15, 2015 9:32 am
brian.vanheesch offline
Posts: 17
Joined: May 05, 2014

Re: Control Variable Image "extensions"

Many thanks!

Posted on
Mon Jun 15, 2015 9:56 am
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Control Variable Image "extensions"

To be clearer: rename BVHHouseMode.png to BVHHouseMode+.png and it'll work. Specifically, the second paragraph in the Image Selection Heuristics section on the Custom Images doc page.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests