### How to integrate previous rotation values.

Posted:

**March 28th, 2019, 9:30 pm**I have a simple composition made in Quartz Composer that spins a rotor on a wind turbine. The idea is the the speed of the rotation chances over the course of an hour or whatever. It's for a TV bug in the bottom corner of the screen and I'd like to make it in AE rather than render out to ProRes444 and overlay in Premier Pro (or whatever editing app).

The problem with using and random value in a type of expression is that when the random value changes, the rotational value for the rotor jumps to some random value. THat's not what we want.

In QC the trick is the Integrator patch, which like the mathematical term takes the value history into account when determining the new rotational value. It's as simple as joining this set of five patches and entering your Min. Max values into the random patch and 0º and 360º into interpolation patch.

I know the expression in AE for Random and for Slider. I guess I can make keyframes for the Slider Value and do away with the need for a random expression to change the rotational speed at different points in time but how do I stop the rotor jumping around when I change the speed?

I could write an expression for a sin wave for the speed or a parabola but it seems like overkill and not really the desired level of "randomness" I'm looking for either.

The problem with using and random value in a

Code: Select all

`Time * (random value)`

In QC the trick is the Integrator patch, which like the mathematical term takes the value history into account when determining the new rotational value. It's as simple as joining this set of five patches and entering your Min. Max values into the random patch and 0º and 360º into interpolation patch.

I know the expression in AE for Random and for Slider. I guess I can make keyframes for the Slider Value and do away with the need for a random expression to change the rotational speed at different points in time but how do I stop the rotor jumping around when I change the speed?

I could write an expression for a sin wave for the speed or a parabola but it seems like overkill and not really the desired level of "randomness" I'm looking for either.