-
changing rotational velocity
Hi there, I’m not very well-versed in how scripting works, so answers will have to be in simple terms, thanks!
I’m using the Trapcode Sound Keys effect, and I’d like its output to effect the rotation of an object. But I would like to set up a relationship between the speed of the rotation and the volume of the music.
I’ve been trying to add the SK output value to the previous frame’s rotation property value. Like this (applied to the “Small Cog” rotation property):
n = thisComp.layer(“White Solid 2”).effect(“Sound Keys”)(“Output 1”);
m = thisComp.layer(“Small Cog”).transform.rotation.valueAtTime(time-thisComp.frameDuration);
n + mIt doesn’t appear to return anything other than zero for my “m” variable. My idea was to keep adding the number from SK output to each new frame so that it would keep turning by larger or smaller increments.
Any ideas?
-david