Author: Rick Gerrard
Applied to the anchor point and x position properties, rolls a square layer object along a floor so that the sides stayed in contact with the floor plane, when the rotation property is animated.
Code Sample
Hover over the code and click the copy button.
minAudio = 0;
maxAudio = 15; //or whatever the max audio level value is
maxStretch = 2.0;
audioLev = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
stretch = linear(audioLev, minAudio, maxAudio, 1.0, maxStretch);
value * stretch