-
Is there any way to refer to multiple layers within one single expression?
Hey everyone and thank you for reading my thread!
It’s now been like 3 days that I spent desperately trying to figure this out myself and I dug to the bedrock of internet and found nothing working for me…
Here is the situation :I’m making a 100% automated type-on animation in an old computer display look. The animation itself id done and working and now I can put whatever I want in source text and it auto animates and everything is easy to control without a single keyframe involved. Past that I went ambitious and also animated the crushing “beep” noises of type whenever some text is being typed. Everything works beautifully! But now I need to make multiple texts. The problem is that I want to keep the same sound layer to execute the expression for all the text layers. I tried to name all my text layers the same but It only takes the one with the nearest index# into account… I tried to use name.includes() but it is a JS function that is unknown to AE…
There must be a way but I can’t figure it out… I’m sure the solution is right in font of me but is so obvious that I don’t see it.If anyone can help me you’ll get my eternal respect and awe!
Here’s the expression that needs to be solved.
P.S. : the audio level input is 1so i stands for in and o for out. So i = 1*-10 and o =1*-200 (o is to mute the sound basically)
The text layer is called TEXTE because I speak french too hahai = audio.audioLevels*-10
o = audio.audioLevels*-200
if(thisComp.layer("TEXTE").effect("Texte")("Curseur")<1){
o
}
else if(thisComp.layer("TEXTE").effect("Texte")("Curseur")<(thisComp.layer("TEXTE").text.sourceText.length-1)){
i
}
else
o