Page 1 of 1

autorun a script on AE launch?

Posted: March 16th, 2006, 4:06 pm
by Varangian
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!

Run script at startup, apply .ffx

Posted: March 16th, 2006, 7:06 pm
by redefinery
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

Posted: March 18th, 2006, 5:56 am
by Paul Tuersley
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?

applyPreset()

Posted: March 18th, 2006, 6:10 pm
by redefinery
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