Placement Question for Complex Rotation

I am wondering how to set an expression tag for the rotation of an image, to go around the clock face once a day, to represent the Sun, while also allowing the Sun’s face to stay level? How would I craft the x/y Placement tag expressions? Any pointer appreciated!!

SMILEY_LEVELED

Guess I am struggling to figure out how to set a hard X/Y value for the Placement tags. I see examples where the value merely moves the image x pixels from its previous position.

In this test script for X Placement, , the image moves forwards or backwards 10 pixels, but only when the value changes from the previous push, at 15, 30, 45 and 55 seconds.

(([s]>=0)*([s]<5)*10)+
(([s]>=5)*([s]<10)*10)+
(([s]>=10)*([s]<15)*10)+
(([s]>=15)*([s]<20)*(-10))+
(([s]>=20)*([s]<25)*(-10))+
(([s]>=25)*([s]<30)*(-10))+
(([s]>=30)*([s]<35)*10)+
(([s]>=35)*([s]<40)*10)+
(([s]>=40)*([s]<45)*10)+
(([s]>=45)*([s]<50)*(-10))+
(([s]>=50)*([s]<55)*(-10))+
(([s]>=55)*([s]<=59)*10)

My take on this test is that the placement tag refers only to the image’s starting position rather than an absolute X/Y position, that the tag says “move the image 10 pixels from where it was originally set for in the design properties.”

Is there any way to set an image’s X/Y positions to absolute values?

if you would accept the movement around circle to be split into 24 fixed positions in 24h,
then you could simply center the image and let it shift placement according following formula
for x: (([H]==0)*(0)+([H]==1)*(-0.26)+([H]==2)*(-0.5)+([H]==3)*(-0.71)+([H]==4)*(-0.87)+([H]==5)*(-0.97)+([H]==6)*(-1)+([H]==7)*(-0.97)+([H]==8)*(-0.87)+([H]==9)*(-0.71)+([H]==10)*(-0.5)+([H]==11)*(-0.26)+([H]==12)*(0)+([H]==13)*(0.26)+([H]==14)*(0.5)+([H]==15)*(0.71)+([H]==16)*(0.87)+([H]==17)*(0.97)+([H]==18)*(1)+([H]==19)*(0.97)+([H]==20)*(0.87)+([H]==21)*(0.71)+([H]==22)*(0.5)+([H]==23)*(0.26))*RADIUS in pixels
for y: (([H]==0)*(1)+([H]==1)*(0.97)+([H]==2)*(0.87)+([H]==3)*(0.71)+([H]==4)*(0.5)+([H]==5)*(0.26)+([H]==6)*(0)+([H]==7)*(-0.26)+([H]==8)*(-0.5)+([H]==9)*(-0.71)+([H]==10)*(-0.87)+([H]==11)*(-0.97)+([H]==12)*(-1)+([H]==13)*(-0.97)+([H]==14)*(-0.87)+([H]==15)*(-0.71)+([H]==16)*(-0.5)+([H]==17)*(-0.26)+([H]==18)*(0)+([H]==19)*(0.26)+([H]==20)*(0.5)+([H]==21)*(0.71)+([H]==22)*(0.87)+([H]==23)*(0.97))*RADIUS in pixels

1 Like

Excellent! Thanks again, Peter!

I was able to get the placement every 20 minutes by expanding on your hourly formula, for a smoother transition of time . . . Thanks again!

Here’s the X placement:

((([H]==0)*([m]<=20))*(0)+
(([H]==0)*([m]>20)*([m]<40))*(-0.09)+
(([H]==0)*([m]>=40))*(-0.18)+
(([H]==1)*([m]<=20))*(-0.26)+
(([H]==1)*([m]>20)*([m]<40))*(-0.34)+
(([H]==1)*([m]>=40))*(-0.42)+
(([H]==2)*([m]<=20))*(-0.5)+
(([H]==2)*([m]>20)*([m]<40))*(-0.57)+
(([H]==2)*([m]>=40))*(-0.64)+
(([H]==3)*([m]<=20))*(-0.71)+
(([H]==3)*([m]>20)*([m]<40))*(-0.76)+
(([H]==3)*([m]>=40))*(-0.81)+
(([H]==4)*([m]<=20))*(-0.87)+
(([H]==4)*([m]>20)*([m]<40))*(-0.9)+
(([H]==4)*([m]>=40))*(-0.93)+
(([H]==5)*([m]<=20))*(-0.97)+
(([H]==5)*([m]>20)*([m]<40))*(-0.98)+
(([H]==5)*([m]>=40))*(-0.99)+
(([H]==6)*([m]<=20))*(-1)+
(([H]==6)*([m]>20)*([m]<40))*(-0.99)+
(([H]==6)*([m]>=40))*(-0.98)+
(([H]==7)*([m]<=20))*(-0.97)+
(([H]==7)*([m]>20)*([m]<40))*(-0.93)+
(([H]==7)*([m]>=40))*(-0.9)+
(([H]==8)*([m]<=20))*(-0.87)+
(([H]==8)*([m]>20)*([m]<40))*(-0.81)+
(([H]==8)*([m]>=40))*(-0.76)+
(([H]==9)*([m]<=20))*(-0.71)+
(([H]==9)*([m]>20)*([m]<40))*(-0.64)+
(([H]==9)*([m]>=40))*(-0.57)+
(([H]==10)*([m]<=20))*(-0.5)+
(([H]==10)*([m]>20)*([m]<40))*(-0.42)+
(([H]==10)*([m]>=40))*(-0.34)+
(([H]==11)*([m]<=20))*(-0.26)+
(([H]==11)*([m]>20)*([m]<40))*(-0.18)+
(([H]==11)*([m]>=40))*(-0.09)+
(([H]==12)*([m]<=20))*(0)+
(([H]==12)*([m]>20)*([m]<40))*(0.09)+
(([H]==12)*([m]>=40))*(0.18)+
(([H]==13)*([m]<=20))*(0.26)+
(([H]==13)*([m]>20)*([m]<40))*(0.34)+
(([H]==13)*([m]>=40))*(0.42)+
(([H]==14)*([m]<=20))*(0.5)+
(([H]==14)*([m]>20)*([m]<40))*(0.57)+
(([H]==14)*([m]>=40))*(0.64)+
(([H]==15)*([m]<=20))*(0.71)+
(([H]==15)*([m]>20)*([m]<40))*(0.76)+
(([H]==15)*([m]>=40))*(0.82)+
(([H]==16)*([m]<=20))*(0.87)+
(([H]==16)*([m]>20)*([m]<40))*(0.9)+
(([H]==16)*([m]>=40))*(0.93)+
(([H]==17)*([m]<=20))*(0.97)+
(([H]==17)*([m]>20)*([m]<40))*(0.98)+
(([H]==17)*([m]>=40))*(0.99)+
(([H]==18)*([m]<=20))*(1)+
(([H]==18)*([m]>20)*([m]<40))*(0.99)+
(([H]==18)*([m]>=40))*(0.98)+
(([H]==19)*([m]<=20))*(0.97)+
(([H]==19)*([m]>20)*([m]<40))*(0.94)+
(([H]==19)*([m]>=40))*(0.91)+
(([H]==20)*([m]<=20))*(0.87)+
(([H]==20)*([m]>20)*([m]<40))*(0.82)+
(([H]==20)*([m]>=40))*(0.76)+
(([H]==21)*([m]<=20))*(0.71)+
(([H]==21)*([m]>20)*([m]<40))*(0.64)+
(([H]==21)*([m]>=40))*(0.57)+
(([H]==22)*([m]<=20))*(0.5)+
(([H]==22)*([m]>20)*([m]<40))*(0.42)+
(([H]==22)*([m]>=40))*(0.34)+
(([H]==23)*([m]<=20))*(0.26)+
(([H]==23)*([m]>20)*([m]<40))*(0.18)+
(([H]==23)*([m]>=40))*(0.09))*RADIUS in pixels
1 Like

I’m glad you could work with it further.
I hope the length of the formula does not cause any trouble on the watch.