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

Changing the "Loop Preview Option" with a script

New Here ,
Nov 23, 2022 Nov 23, 2022

Hello,

I'm writing a script for After Effects, where I want to change the option "Loop Preview" (red).Screenshot1.pngexpand image

 

In the Scripting Guide I found these functions to edit the preference file:

  • app.preferences.savePrefAsBool(sectionName, keyName, value[, prefType])
  • app.preferences.savePrefAsFloat(sectionName, keyName, value[, prefType])
  • app.preferences.savePrefAsLong(sectionName, keyName, value[, prefType])
  • app.preferences.savePrefAsString(sectionName, keyName, value[, prefType])

 

But the data type of the Looping Option in the Prefs file "Adobe After Effects 23.0 Prefs.txt" doesn't fit with any of the functions above (01000000 is looping off; 00000000 is looping on). I already tried to use String as data type, but it didn't work, because then the numbers would be in quotation marks. It was no problem to edit the other preview options, where the values are in quotation marks.

Screenshot2.pngexpand image

 

Can anyone help me with my problem? Is it a bug or did I overlook something? I'm new to coding, so I don't know that much about it.

 

Best regards

Fabian

TOPICS
Preview , Scripting
107
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
no replies

Have something to add?

Join the conversation