autorun a script on AE launch?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Varangian
Posts: 38
Joined: December 16th, 2004, 11:15 am

I have a custom palette with handy scripts I would like to have run automaticall on AE launch. can this be done? if so, how?

thanks!

also, can a script be written to apply an .ffx file to a selected layer?

thanks again!
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

Hi Varangian,

You can place a script in the Scripts > Startup folder.

As for applying a preset (.ffx) file, you can use the Layer applyPreset() method in AE7.

Hope this helps.

Jeff
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

applyPreset().....wow, I completely missed that.

Do you know if we just use the preset name as it appears in the presets palette or do we have to actually locate the file on the hard drive. Also, what about the ability to apply the preset at a certain time in the comp?
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

Hi Paul,

You need to use a File object for the file on disk. Multiple presets can have the same name (e.g., if they're in different folders on disk), so I can see how it makes sense that a file reference is required.

The preset's keyframes should be applied relative to the current time (CTI), so you should be able to adjust the comp's time attribute beforehand.

Jeff
Post Reply