Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Set new default solids folder with JavaScript

New Here ,
Apr 13, 2018 Apr 13, 2018

Hello! Is it possible to set other folder to default solids folder with JavaScript command?

Basically this thing, but with JavaScript:

2018-04-13 16_54_32-Adobe After Effects CC 2018 - Untitled Project.aep _.png

TOPICS
Scripting
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Apr 13, 2018 Apr 13, 2018

Yes, it's possible.

This information is stored in Adobe After Effects 15.1 Prefs-indep-general.txt file under section Template Project with key New Project Solids Folder. Here's a snippet how to set Solids folder name via ESTK.

var folderName = 'EVERYTHING IS AWESOME!';

setSolidsFolderName(folderName);

function setSolidsFolderName(folderName) {

    var section = 'Template Project';

    var key = 'New Project Solids Folder';

    try {

        app.preferences.savePrefAsString(section, key, folderName, PRE

...
Translate
Advocate ,
Apr 13, 2018 Apr 13, 2018
LATEST

Yes, it's possible.

This information is stored in Adobe After Effects 15.1 Prefs-indep-general.txt file under section Template Project with key New Project Solids Folder. Here's a snippet how to set Solids folder name via ESTK.

var folderName = 'EVERYTHING IS AWESOME!';

setSolidsFolderName(folderName);

function setSolidsFolderName(folderName) {

    var section = 'Template Project';

    var key = 'New Project Solids Folder';

    try {

        app.preferences.savePrefAsString(section, key, folderName, PREFType.PREF_Type_MACHINE_INDEPENDENT);

    } catch (e) {

        return alert(e.toString());

    }

    app.preferences.saveToDisk();

    app.preferences.reload();

    alert('Solid folder successfully changed to "' + folderName + '"\n' +

        'Please create new project for changes to take effect.');

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines