app.settings.getSetting not working
Posted: April 3rd, 2019, 8:00 pm
I'm trying to retrieve the label colours from the user's prefs. What I'm using is:
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.
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?
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?