-
AE Script: Need to infer Script directory cross-platform
This seems like something many folks would need to do, but I have been running around going nuts the last couple days trying to find how to do this.
I am trying to write a script that can be dropped into the AE ScriptsUI folder along with an AEP. When the user runs the panel, it will import and utilize the AEP. The importing-a-project part is easy… but the thing is, I don’t really want to explicitly have a file path to where the scriptsUI folder is on MY computer. That doesn’t apply to everyone. I want this script to work for people that have different versions of AE (CS3 and up), different versions of Windows, different versions of Mac OS…
I would have thought somewhere I could call up a property where AE simply knows the directory where it’s running from, and then I could modify the path from there… but I can’t seem to find anything like that. Does anyone know what I could do? Or, perhaps a smarter way of doing this?
Thanks
Ryan