-
Control layer visibility with external variable
Hi everyone
I have some lower thirds that I need to create in AE. I will read the text from an external text file as described by Harry Frank and others in various tutorials.
So far so good but here’s my problem: i have two different lower third backgrounds. One is blue, the other is red. Both are single layers in the PreComp. Now I would like to turn on or off these background layers, based on a variable in the external text field.
Let’s say my external text file looks like this:
var comp1 = [“John Spencer”, “Actor”, “blue”]; -> should turn on blue background layer
var comp2 = [“Tracey Jones”, “Director”, “red”]; -> should turn on red background layerIs there a way to do this?
Cheers!
Pascal