-
Expression needed: IF source text of textlayer A is negative number THEN opacity of layerB is 0, opacity of layer C is 100
Hi,
I am looking for an easy way to speed up a daily job (generating a number of comps based on info filled out in textlayers in another comp).
All data are filled out in a master comp. If I nest this comp and mask only the fields I need for every distinct comp, rendering takes ages.
I used expressions to fill out the textlayers (referring to the textsource in the mastercomp). This speeds up rendering a lot compared to masked nested comps.
However, all comps also contain arrows (red down or green up) for negative and positive values.
So for these layers, I am in need of an expression for the opacity that looks at the sourcetext of a textlayer. If this source starts with a “-“, then the opacity of the red arrow should be 100, the opacity of the green arrow 0.
If no “-” is present, the other way round.I am also looking for an easy way to “choose” between a number of flags.
Could I (or you!) come up with a method of selecting a flag (through opacity i guess) via an expression controller of some sort in the master comp and having another corresponding layer pop up (opacity) in another comp?All help, hints, tips and tricks much appreciated!
Thanks
Simon