Skip to main content
Inspiring
January 15, 2024
Question

Setting Project wide settings with a script

  • January 15, 2024
  • 1 reply
  • 232 views

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
This topic has been closed for replies.

1 reply

Known Participant
January 23, 2024

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`