the section name and key for the preferences are copy-pasted out of the "Adobe After Effects 16.1 Prefs-indep-general.txt" file, so that's why the third parameter of getSettings is PREFType.PREF_Type_MACHINE_INDEPENDENT.
Code: Select all
var label1 = app.settings.getSetting("Label Preference Color Section 5", "Label Color ID 2 # 1", PREFType.PREF_Type_MACHINE_INDEPENDENT)
But every time I try I get the error "the section name and key (Label Preference Color Section 5, Label Color ID 2 # 1) could not be found in the preferences."
I tried some preferences from the main settings as well and even the settings used in the example in the docs, but same result every time. What am I doing wrong?