JSON file name as a variable
Hi,
I’ve been using After effects and JSON files just for the sole purpose of displaying students grades as an animation. Because the name of the file has always been grades.json for every student, all I had to do was right click and replace the file to that of the correspoing student.
Now the JSON files will have unique names such as Alice-grades.json and Bob-grades.json but the code references grades.json, and I can’t right click and replace the file anymore unless I manually change the file name in the code per every student, every student is an After Effects project.
How can I have the JSON file name as a variable, so I would have a similar process of right click ,replace file. For example right clicking and replacing file Alice-grades.json to Bob-grades.json without having to modify the code.
Since there will only be one JSON file per project I can get away by just having the code to use whatever JSON file is in the current After Effects Project.
Am I taking the right aproach or there is something else I'm missing?
Thank you!
