hi i want to set up some expressions or conditionals to have a pic layer change every hour to cycle through. for example the pic only show between 11 and 12 the a new one shows up for 12 and 1 and so forth. also if any one has any refrences or knowledge for a beginner it would greatly be appreciated
You need to set the “transparency” (which is mis-named: it should be “opacity”) to 100 when you want the picture to show and 0 at all other times. So if you want a particular picture to show up at 11:00 and disappear again at 12:00, you need to simply check if the hour (which would be #Dh# if you’re using a 12-hour system) is equal to 11: if it is, set transparency to 100; if not, set it to zero:
$#Dh#==11?100:0$
If you don’t know how these expressions work, it breaks down like this: #Dh#==11? tests if #Dh# is equal to 11. After that comes the value you want if the expression is true (so in this case, if #Dh# is equal to 11, we want the value 100), then a colon, then the value you want if the expression is false (#Dh# does not equal 11).
You need to the same thing for each image, but obviously with a different number each time:
$#Dh#==12?100:0$
$#Dh#==1?100:0$
$#Dh#==2?100:0$
and so on.
I’m thinking intervals… haven’t actually checked it, but here’s the logic
$#DHZ#<5?100:0$
$#DHZ#>==5&&#DHZ#<12?100:0$
$#DHZ#>==12&&#DHZ#<18?100:0$
$#DHZ#>==18&&#DHZ#<20?100:0$
$#DHZ#>==20?100:0$
Is the day’s hour (DHZ, 00-24) between this hour AND that hour?
Then display either “night, morning, etc”. You can assign what you want in there.
Otherwise show 0.
And since every possible hour is covered with those conditionals… yeah. Try it out.
LE: Edited to correct a bit of logic there. True result returns 100 to turn transparency to visible, false still returns invisible.
Also, checked it. Code works when used as transparency controller.
Ok cool ty for the help and coad I’ll post the completed list once I’m done.
This was very helpful thank you