Thanks Dan!
So basicly position.speed detects any changes? Unfortunately this doesn’t seem to work in my case though, I don’t know why…
I had to put in the speed rotation also, because it’s animated aswell.
This gives me very weird results, it mostly stays at 10000 and in proximity of few keyframes it turns to 0 for a single frame…
The null animation is not very complex.
Could it be something related to the easy ease keyframes? It looks like it detects speed even between two keyframes that have the same values. The animation doesn’t move at all between them but maybe the easy ease interpolation makes the expression think that there is some speed data.
s = thisComp.layer("Null_controller_iPhone").transform.position.speed;
r = thisComp.layer("Null_controller_iPhone").transform.yRotation.speed;
if ((s > 0) || (r >0)) 10000 else 0;