Did you know that in Blender you can easily animate oscillating objects with a single driver…
@passivestar_54K followers
296,266 views
11 Comments
Comments from the original post on X (Twitter)

@passivestar_
wait I can repost old stuff and still get likes? 😳
67 likes

@quackarooners
Great tip! Another thing you might want to know is that "2 * pi" is a value that pops up quite often in formulas that there's a name for it. It's called "tau", and Blender actually recognizes it as a constant, which is pretty sweet as it makes a lot of expressions simpler.
24 likes

@passivestar_
yeah I checked and tau actually works, good catch! 👍
7 likes

@SMOUSE_CG
I'm relatively new to drivers... Sin(frame/15.9)*0.5 gives the exact same result. Are the extra variables just for human readability and control?
9 likes

@passivestar_
yes, exactly! those kind of micro-optimizations aren't relevant even in realtime code anymore (like gamedev), let alone blender driver expressions that only run once per frame. compilers are smart enough to do those optimizations for you in most cases anyways
7 likes

@Bleddy81
Oi! Blender is hard enough already! No need to throw math in there as well.
7 likes

@passivestar_
😅
2 likes

@carlosedubarret
Great tip. You are not passive star, you are active for sure, so many tips 😍
5 likes

@passivestar_
Thanks 😅
2 likes

@kureiicz
For optimization, you should simplify your formula: frame /300 * pi *3 * 2 can be simplified to frame/50 * pi. This will remove 2 multiplications from what the CPU has to do per frame.
4 likes

@passivestar_
No need to, python precalculates those for you
2 likes