ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Scripting: get solids folder from preferences

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jorgen Follestad
Scripting: get solids folder from preferences
on Mar 5, 2019 at 9:51:30 pm
Last Edited By Jorgen Follestad on Mar 5, 2019 at 9:52:43 pm

Hi I need to figure out what the current projects solids folder is set to.

I can get the default solids folder from the preferences:
alert(app.preferences.getPrefAsString('Template Project', 'New Project Solids Folder', PREFType.PREF_Type_MACHINE_INDEPENDENT));

But it is the project specific folder I need. I dont know the section or key name to look for, and if it is machine_specific that would have this value?

I've also tried some of these variations without success:
if(app.project.item(1) instanceof SolidsFolder) {
alert("yup");
}


Hope someone can help! Thanks Jorgen


Return to posts index

Dan Ebberts
Re: Scripting: get solids folder from preferences
on Mar 5, 2019 at 10:15:58 pm

If all else fails, maybe create a temporary comp with a temporary solid, get the solid's solidSource and get the solidSource's parentFolder, then delete the comp, the solid, and the solidSource.

Dan



Return to posts index

Jorgen Follestad
Re: Scripting: get solids folder from preferences
on Mar 6, 2019 at 8:28:38 am

Yes, that will have to do the trick. Thanks Dan!! J


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]