AE Expressions Questine
- Started
- Last post
- 3 Responses
- Hombre_Lobo0
Found it!
I had some code that changed the scale of a layer from 100% to 200% to match the amplitude of the music.Part of the expression -
lin=linear(temp,0,30,100,200);when the amplitude was 0 the scale was 100%
when the amplitude was 30 the scale was 200%(This was linked to a layer which had left channel, right channel, both channels and Parametric EQ effects.)
Full expression on the layer changing scale -
temp = thisComp.layer("Audio Amplitude").effect("Both Channels")("Slider");
[temp*5,temp*5];lin=linear(temp,0,30,100,200);
[lin,lin];Been a while since I've played with linking audio amplitude in expressions so i cant explain it too well.
But i hope that helps dude!
- SWEET! thanks brotha from anotha motha!moldero
- lol! No prob motion man!Hombre_Lobo
- Hombre_Lobo0
Makes total sense. You need to tell it what value range the 100% is. Shit I've done exactly this before, but completely forgot.
I'll look at my old experiments that have it in. Miko might be spot on.Yaay expressions.
- It's all mx+c unless you get logarithmic.. :)mikotondria3
- mikotondria30
...("Output 1" / (100/5.6)) ?
- cool thanks miko, after this 3 hour render i will try thatmoldero
- moldero
I hope this makes sense:
i got this:
thisComp.layer("SoundKeySolid... Keys")("Output 1")"Output 1" are values from 1-100
"thisComp.layer" currently has a value of 5.6
I would like to keep this value at 5.6 max using "output 1" as a percentage 1%-100% of 5.6does this make sense?