Skip to main content
Inspiring
January 31, 2012
Question

Startup script to set default fps to 24

  • January 31, 2012
  • 2 replies
  • 2664 views

I would like to have the fps preference be set to 24 every time ae opens. I know the script would need to be in the startup folder. Is this possible?

This topic has been closed for replies.

2 replies

Inspiring
February 6, 2012

Hi,

In fact, there is an undocumented extendscript function that open a template file. So just create your basic project template and save it somewhere.

The following line will load your template :

app.openTemplate(new File(templatePath))

Alan_AEDScripts
Inspiring
February 14, 2012

Hi there, I was using the 'openTemplate()' for a week or two... then encountered an unusual problem.

All of my rendering failed on the first frame - yet logged no errors and indicated that the renders had been done in the render queue.

This was across all comps and then also when I opened new scenes etc. Also existed when I restarted the machine. It was melting my head.

When I deleted the template script from the startup folder, it was back to normal. Perhaps I discovered why it's undocumented, weird problem.

Known Participant
February 3, 2012

You can set preferences at startup by creating a .jsx script in the startup folder that contains a line like this:

app.preferences.savePrefAsLong("Auto Save", "Enable Auto Save2", 1);

The preferences are saved here: C:\Users\<username>\AppData\Roaming\Adobe\After Effects\10.0\Adobe After Effects 10.0-x64 Prefs.txt.

I'm not sure if you can set the fps preference to 24 though. I only saw a fps preference for importing.

Legend
February 3, 2012

I'm not sure if you can set the fps preference to 24 though. I only saw a fps preference for importing.

That is correct.

["General Section"]

          "Allow Idle Application Rendering" = 01

          "Create New Layers At Time Zero" = 01

          "Custom UI Shadow X Offset (pixels)" = "1"

          "Custom UI Shadow Y Offset (pixels)" = "1"

          "Custom UI Stroke Size (pixels)" = "2"

          "Default Import Sequence FPS" = "23.975998"

          "Levels of Undo" = "32"

          "Path Point Selection Area Expansion (pixels)" = "7"

          "Path Point Size (pixels)" = "5"

          "Share Comp View Options" = 00

          "Show Tip of the Day" = 00

          "Synchronize Time" = 00

          "Use layer bar pattern when selected" = 01

It's only for image sequences, it doesn't effect comps.

Assuming that you are trying to have it effect comps, the actual fps setting for compositions is composition independent so trying to set a global fps for compositions at startup would not work. You could make a script to change all selected comp fps after the fact or one to build a comp at a certain fps.