-
Looking for a script to replace text in text layers from a file
Hello All,
Hopefully someone has some suggestions. I have a project I set up for a client that needs to be easily customizable for each of their series. It has a ton of text layers which will each need to text replaced. I figured it would be easiest to offload this to an easily editable text file and automate the customization process. I got it working using an expression, but since the project will be handed around a lot, and expressions don’t handle relative file paths, I’m thinking a script will work better.
So far I have not found a script that will do exactly what I’m looking to do. compsfromspreadsheet is close to what I’m looking for, but my project is far too complex, with many subcomps, to go the duplication route. Instead I just want to replace the text, no duplication. I’ve also looked at cggreen’s crg_Text_from_File, but I need it to target specific layers based on the text file and not just load all the text into one comp.
I need something like this:
1) Let me select an external text file
2) Replace the text in specific layers in the project based on data in the fileIdeally I could also do the following as well.
3) Replace an image file in specific layers in the project based on the file
This would be a one time process. Duplicate the file, run the script, (fix the problems), render.
Any ideas? I’m not the best scripter, but can probably cobble something together if I can get pointed in the right direction.