Random images shown


Is it possible to show random images or shapes? I mean, a different one every time the watch wakes. And another thing, I want to show a random number from 0 to 9 every 24h, any idea?

First one is relatively easy
Just use the formula in transparency
$(wakeRand(1,N))==n?100:0$ for each image or shape, where N is the total number of images and n is the number of the specific image youre scripting.
Let me think the second, that’s not easy… :thinking:


great!! thank you, there is an expresion (rand(1, 10)) but im not sure whether it will works as I want :slight_smile:

That rand keep generating random numbers between the 2 of the expresion every time. You cant’t generate one and take it to a VAR, that´s would be awesome… but no. It keeps changing the numbers. Its what I used to make vibrate the vumeter needles, remember? It’s not what you are looking for… Make a blank watch, add a text with (rand(1,10)) and save, preview it and look yourself to understand better that expression.

This is what I’m working on. Background and colors change every time you wake your watch up, but I wanted to know whether is there any possibility to mix 2 formulas, because I’m using that quoted code in the transparency field, but, I wanted to add a fade in effect as well, so,

How can I mix the next formulas and turn them into just one? :slight_smile:
this: $(wakeRand(1,N))==n?100:0$ and this one: ((interpAccel(#DWE#, 0, 2, 2)*100))


1 Like

Beautiful, congrats!
Well, I recomend to use the fade formula on transparency and the wakeRand formula on x or y position
That way, if the image is selected by random it stays onscreen and it will fade in, all the others keeps offscreen.
PD: if you really wanna combine both formulas I think it will be
$(wakeRand(1,N))==n?((interpAccel(#DWE#, 0, 2, 2)*100)):0$

Thank you @carlosfilippa I think now is working how I wanted, I also wanted to add that rotation effect at the begining as you can see in the video but for now is enough, here is 3am and I need some rest :stuck_out_tongue:

Thank you!!

By the way, on the web preview it seems to be slower than on my watch and phone preview.


1 Like

Yes its slower. Glad you made it! Congrats

It should be possible to set values to VARs…
Can’t understand why it is not possible…

This is exactly what I was looking for tonight. thanks!

1 Like