-
Glow intensity tied to audio amplitude
I’m trying to attach the glow intensity of a layer in a Comp called “Tunnel” to the Audio Amplitude of a comp called “Rush”. This is what I have so far:
d = thisComp.layer(“glow”).comp(“Rush”).layer(“Audio Amplitude”).effect(“Right Channel”)(“Slider”);
minScale = [.1];
maxScale = [2];
dAtMinScale = .1;
dAtMaxScale = 2;linear(d,dAtMaxScale, dAtMinScale, maxScale, minScale)
However, this only sets the glow intensity to the max value, it won’t fluctuate based on the audio amplitude properties in the other comp. It must be something simple I’m missing, but I can’t get it. Also, I don’t know if I even totally understand this expression. As far as I understand it means d is between 2 and .1 (based on the datminscale/datmaxscale part) and then they are connected in a linear way. However, I don’t quite know what the minscale and maxscale parts are defining. If anyone could clear that up for me and help me with why this isn’t working that’d be great. Thanks for any help.