Return to Origin

I’m trying to set up a scene where a smooth envelope modifier value controls the speed at which an object rotates around a pivot point. I would then like the object to end up stopping at its original starting rotation heading when the smooth envelope modifier’s value is set back to zero, instead of whatever rotation it happens to be at.

Return to Origin.dfx (10.7 KB)

That is a tricky problem, one of those “easy to describe, hard to implement” types :slight_smile:

There might be a way to do this in Notch with nodes, but I think JavaScript is the easiest solution. using the smoothing node going in is a bad idea because as soon as you set 0 it will immediately begin to move slower and slower - I would do the smoothing as the last step. Try this file out.

Return to Origin_b.dfx (82.3 KB)