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

Setting Project wide settings with a script

Explorer ,
Jan 15, 2024 Jan 15, 2024

Copy link to clipboard

Copied

We work on multiple movie projects at once. Each has their own required fps and color settings. I was hoping to have a javascript which checks and modifies this based on per-project presets. I thought this would work :

 

app.preferences.getPrefAsFloat(sectionName, keyName[, prefType])

 

But this errors out :

app
.preferences.getPrefAsFloat("Import Options Preference Section", "Import Options Default Sequence FPS");

 
The original values are cut and pasted from Adobe After Effects 23.6 Prefs-indep-general.txt 

["Import Options Preference Section"]
  "Import Options Default Import Type" = "1"
  "Import Options Default NTSC Dropframe" = 01
  "Import Options Default Sequence FPS" = "24.000000"
   "Import Options Default Unlabeled Alpha" = "1"
   "Import Options Verify Individual Sequence Files" = 00
   "Report Missing Frames From Sequences" = 01

Any pointers on this and the accessing the color management settings would be appreciated. 
 
Thank you
TOPICS
Scripting

Views

69

Translate

Translate

Report

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
Community Beginner ,
Jan 23, 2024 Jan 23, 2024

Copy link to clipboard

Copied

LATEST

Hi. here is docs : Preferences object 

default pref file is "....Prefs.txt" , maybe you can

app.preferences.getPrefAsFloat("Import Options Preference Section", "Import Options Default Sequence FPS",PREF_Type_MACHINE_INDEPENDENT);

 

or you can change your config to `x Prefs.txt`

Votes

Translate

Translate

Report

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