-
Change layer source via expression?
Is there a way to change the source of a layer with an expression?
I currently have about 100 identical comps, and each comp has several effects that are driven by the contents from one of 100 different CSV files, which is selected based on the comp’s name. These CSV’s are automatically generated by another application, which makes everything almost automatic. This is working well, but I’d also like to use the CSV to change what footage a certain layer is using. Is this even possible?
Here’s an example expression I have that changes the Source Text of a layer, based on a csv of the same name as the comp:
footage(thisComp.name+”.csv”).dataValue([2,5]);
I also have expressions that change colors and alter position and rotation. It’s all working lovely.
If my CSV had the name of a piece of footage, could I (for example) alter the footage that layer 3 uses?
Thanks!