Sir, Kalleheikki Kannisto,
I OWE you a billon thanks !!!! I tried on a test comp to express the opacity of a solid referring to the y position of 2 others to reproduce a condition similar to the one with the sound… and it worked just fine.
So i thought really hard and figured out that there were 2 problems… 1st my expression was way too messy and confusing, 2nd the two conditions (if() else if() else) worked fine for one layer but when it ran with 2 layers there was a contradiction (the argument was only true for one at a time).
So I cleared it all up and simplified it as follow and IT WORKED JUST AS EXPECTED!
You can’t imagine how glad and thankful I am! It really helped me out because you sent me thinking in the right direction ????
Guys, this man deserves a cookie, and a tight hug! ????
on = timeToFrames(time)%2*effect("Tonalité")("Niveau")
off = 0
a = thisComp.layer("TEXTE").effect("Texte")("Curseur")
a1 = thisComp.layer("TEXTE").text.sourceText.length-1
b = thisComp.layer("TEXTE 1").effect("Texte")("Curseur")
b1 = thisComp.layer("TEXTE 1").text.sourceText.length-1
if((0<a && a<a1) || (0<b && b<b1)) on else off
Kevin Luca Aubert – Interactive Media Designer