Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scripting: get solids folder from preferences

  • Scripting: get solids folder from preferences

    Posted by Jorgen Follestad on March 5, 2019 at 9:51 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

    Jorgen Follestad replied 7 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 5, 2019 at 10:15 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

  • Jorgen Follestad

    March 6, 2019 at 8:28 am

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy