Change of opacity based on minutes

I would like to change the opacity of an object - it should be 100% between 5 and 25 minutes and between 35 and 55 minutes - otherwise it should be 60%. Or simpler said - the opacity of the object should be 60% between minutes 25 & 35 and 55 & 5 - otherwise it should be 100%.

How would I write the expressions for the opacity box for that:

I have:


but this does not work.

Any help greatly appreciated…

1 Like

try it like this. In preview it works, but I have no wearOS watch to test it on device.
but to cut the interval more precisely maybe you would want it more like


Hello @Peter - thanks so much for your quick reply - very much appreciated. This worked like a charm!


Great to see some advanced Conditional Work. May I join in and say thanks Peter. Tutorial Bookmarked.

Thanks for praise Russel, but it is all based on the public guide


Thanks for the Link . I have that Bookmarked but I have not seen the Voodoo that You Do .Just need good examples to learn the difference between + and + . It is different from other code I have read but I am beginning to understand it a bit now . As there are not a lot of Inspectable Code here , one has to grab what is offered with Both Hands . You know that your Contribution to Community is much appreciated .

While we are talking code/formulas may I share this . Just substitute what is in between [ ] to make your own Digital Roman Watch . Not you have to use " " to embrace text . not needed for numbers . I was surprise it could work .


1 Like

I just would not have the patience to write such long expression


A lot of Copy and paste on Notepad . There is a Find facility but not Find and Replace . I am frightened to use anything else because of the formatting . It suits me :::)))

I use excel for automating substitution (ctrl+h)
and even for synthesizing long expressions


Yeah Thanks . I must upgrade what I do a bit .

Hi Peter - one variation of this: would it be possible to fade in a layer when the watch wakes up and have it stay for 2 seconds and then fade back out and stay hidden? Meaning this layer would only activate when the watch wakes up from the AOD state?

1 Like

Sorry Andi I see no other way than “masking it” under an animation sequence, since WFS has no tag for “elapsed time since wake up”. I have no experience with this, but I think the number of slides would depend on how fast you would want it to play, since the frame rate is fixed to 15fps. There would be starting batch changing from black (or fully opaque to transparent, then batch of 30 identical transparent images and another transition images into fully opaque again.

1 Like

Hi Peter - thanks for your always to the point tips and helpful suggestions - very much appreciated.

1 Like

Hi @andi-sf where did you put this expression? when I select the opacity in WFS there is no “tag” selection. thanks, Daryl

The opacity field has default value 100. If you hover the mouse over that number, in the right part of the field there appears a button to open pop-up window for inserting the expressions with tags.

1 Like