-
Changing images using filenames from a JSON file
Hey smart people,
I’m trying to render a video which shows a schedule of upcoming sports fixtures. As I’ll need to export an updated video every week with new fixtures, I wanted to automate things as much as I could.
I have no experience with scripting, but it looks pretty straight forward to create a JSON file with all the text info about the fixtures (team names, times, etc.), then have After Effects use that to fill out the text boxes, I was hoping to also change team icons in the same way.
Is there any way to have After Effects take the source filename of an image layer (a PNG, for example) from JSON in the same way as it takes the source text of a text layer?
So the JSON file would be something like:
“match1date”: “March 5th”,
“match1team1name”: “Team One”,
“match1team1icon”: “team1.png”,
“match1team2name”: “Team Two”,
“match1team2icon”: “team2.png”Or is there an alternative way to achieve the same goal?
Thanks in advance!
Phil.