How to "layout" a script with multiple files?
I'm writing a script that needs to be split up into multiple parts. I've never done such a thing for After Effects scripts, so I'm a bit sure of the "layout".
Lets say I have 4 files, gui.jsx, utils.jsx, render.jsx, import.jsx.
- Add gui.jsx to the ScriptsUI folder.
- Create a new folder (../ScriptsUI/extras) and put the other three scripts in that folder.
- render.jsx needs methods from utils.jsx. To make them availible,, add the following at the top of render.jsx
$.evalFile(utils.jsx);
- gui.jsx needs both utils.jsx and render.jsx. So I guess I add both using the same method as above? Note that that will make utils "import" twice. Is that a problem?
Any feedback on this approach?
Thanks!
/Simon
