I have around 90 layers with an opacity expression that, for a capital Z layer reads
“v = parseInt(thisComp.layer(“UNICODE”).text.sourceText);
if (v==90)100 else 0;”
but for lowercase a layer, reads
v = parseInt(thisComp.layer(“UNICODE”).text.sourceText);
if (v==115)100 else 0;
Etc. The “UNICODE” text layer updates to provide the unicode digits for the last letter to get revealed in a type-on style text animation, (so when it is 90, only the capital Z layer is visible, and when it is 115, only the lowercase a layer is visible).
So if I’d write the word PiZZaZ, then the P layer reveals, then the i layer, then the Z layer reveals, then the a layer, then the Z layer again. I’d prefer it if the P layer reveals, then the i layer, then the Z layer reveals, the the Z layer reveals AGAIN, then the a layer, then the Z layer again.
Would there be a way of handling that in the expressions without having 90 “&&” moments in each expression?
Thanks very much for your time