Adobe 65009963 Scripting Manual page 175

After effects cs4
Table of Contents

Advertisement

Examples
files to save processing time.
If no match is found for a number string, assumes there is no image sequence and checks for an array
consisting of the matched string and its location within the file name.
If all files are part of a numbered sequence, assumes a sequence and returns the first file of that sequence.
Defines a helper function to pop up error dialog boxes if there is a problem with any file we are attempting
to import.
Defines a helper function to actually import any image sequence discovered using
There is an option for forcing alphabetical order in sequences, which is commented out in the script as
written. If you want to force alphabetical order, uncomment the line
.
t ru e
Calls the main function,
Render and e-mail
This script,
r e n de r _ a n d_ e m ai l . j s x
indicate when the render has completed. It makes use of two other scripts that follow,
send the e-mail properly) and
This script does the following:
Establishes conditions under which the script will run. An open project with at least one item queued is
required.
Checks whether e-mail settings are already saved in the preferences. If not, run the
which prompts the user for the mail gateway and sender and recipient addresses. (If there are saved settings
that you need to change, you can always run the script to make new settings that overwrite the existing
ones.)
Render the items in the render queue.
When rendering is complete, creates a text string for the e-mail message that contains the start time of the
render, the render time of each item in the queue, and the total render time.
E-mails the message, using the settings (such as the server) from the
Displays an error if for any reason it is unable to send the mail.
A helper script,
ema i l_meth ods. jsx
of that utility, see the Creative Suite 3 JavaScript Tools Guide.
Another helper script,
e m ai l _ s etu p. js x
recipient that are saved as Settings. You can run this script as standalone any time you want to change the
settings. This script is a good example of how to create settings that are saved in preferences for the sole use of
scripting (as opposed to altering existing After Effects preferences settings).
Convert selected properties to markers
This script,
C on v ert Se l ec te d P ro pe rti es t o Ma rke rs .js x
currently selected in the Timeline panel, and converts the value of each property at each frame time to a Flash
Video event cue point in a marker.
.
p r o c e s s F o l d e r ( )
, renders all queued items in an open project and sends an e-mail report to
(which establishes the sender, recipient, and e-mail server).
ema i l_set up.j sx
, creates an e-mail object, using the ExtendScript Socket object. For details
, prompts the user for the server name, e-mail sender, and e-mail
i m p ort Op ti on s.f or ce Alp ha be ti cal =
ema il_me th ods.j sx
, goes through the properties in each layer that are
Render and e-mail
175
.
t es t F o r S e q u en c e ( )
(to
e m ai l _ m e t h o d s .js x
script,
e m ai l _ s e t u p .js x
script
175

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents