Animating via WPO largely boils down to two main things:
- Being able to visualize what you are trying to do as a curve on a graph
- Being able to construct a math function to represent that curve
In your case, you want it to rotate a certain amount and then stop. Rotate about axis animates via a single angle input, so what would that look like as a curve? Well, it’d basically be a ramp that increases to a certain point and then plateaus and repeats ad infinitum…
Assuming time is on the X axis and rotation is on the Y axis, this will complete a quarter turn every 1 second.
Here is what that would look like on a node graph:
Whats happenin here; I take the frac of the input and multiply it by the PauseFraction which will determine the steepness of the slope, that is then saturated to clamp it at 1 and then added to the floor of the input so that it repeats at a regular interval. Then it is multiplied by the amount of turns we want it to take, in this case a quarter turn (0.25)
Edit: I used rotate about axis here but you should know that it doesn’t rotate normals. For that you have to use the FixRotateAboutAxisNormals node, functions basically the same.