Simulating a Watch Pendulum in Watch Face Studio

Hey everyone, I’m really excited to share my journey with you! I’ve been trying to figure out how to simulate a watch pendulum in Watch Face Studio for a while now, and I thought I’d document my experience in case anyone else is tackling a similar challenge.

First off, I’m not a programmer by trade, so this has been a bit of a learning curve for me. I remember using a formula in WatchMaker that looked something like (math.abs((math.floor({dss}/100)*100)-math.mod({dss},100), 6)/0.5) to get the pendulum effect. But when I tried to replicate this in Watch Face Studio, it just didn’t work the same way. The animation was either too slow or uneven, which was pretty frustrating.

I decided to dive deeper into the problem. I started by researching if there were any existing solutions or tutorials that could help me. I came across a few forums and communities where people had similar issues, and some even shared their own workaround solutions. It was really encouraging to see that I wasn’t alone in this struggle!

After some trial and error, I realized that the key was to tweak the formula slightly to make it work within Watch Face Studio’s parameters. I played around with different values and even reached out to some more experienced developers in the community for advice. One user suggested adjusting the timing parameters to match the frame rate of the watch, which turned out to be a game-changer.

Here’s what I ended up doing: I modified the original formula to better suit the animation engine in Watch Face Studio. I also added a few lines to smooth out the motion, which made the pendulum swing much more realistically. It was a bit of a process, but seeing the pendulum finally move the way I wanted was so satisfying!

I thought it might be helpful to share my updated formula and the steps I took in case anyone else is trying to achieve something similar. Here’s what I came up with:
math
(math.abs((math.floor({dss}/100)*100)-math.mod({dss},100), 6)/0.5)

I also added a few additional parameters to control the speed and damping effect, which really helped fine-tune the animation.

If anyone has any questions or needs further clarification, feel free to reach out! I’d love to help others who are trying to create their own watch faces or animations. Happy creating, and here’s to many more successful projects ahead!