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

Changing the "Loop Preview Option" with a script

New Here ,
Nov 23, 2022 Nov 23, 2022

Copy link to clipboard

Copied

Hello,

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

 

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.png

 

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

Views

75

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
no replies

Have something to add?

Join the conversation