Adobe 65009963 Scripting Manual page 16

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
Global functions
These globally available functions that are specific to After Effects. Any JavaScript object or function can call
these functions, which allow you to display text in a small (3-line) area of the Info panel, and to convert
numeric time values to and from string values.
Global function
c l e a r O u t p u t ( )
cur rent F orma tTo T im e()
t im eToCu rren tForm at ()
w r i te ()
w r i t e L n ( )
Additional global functions for standard user I/O (
I/O, are defined by ExtendScript; for detailed reference information, see the Adobe Bridge® JavaScript
Reference.
NOTE: The After Effects global functions for standard dialogs and file I/O are still supported in this release, but
are deprecated and will not be supported in future releases. For details, see the After Effects 6.5 documentation.
clearOutput() global function
c l e a r O u t p u t ( )
Description
Clears the output in the Info panel.
Parameters
None.
Returns
Nothing.
currentFormatToTime() global function
cur rent F orma tTo T im e( f o r m a t t e d T i m e , f ps , i s D u r a t i o n)
Description
Converts a formatted string for a frame time value to a number of seconds, given a specified frame rate. For
example, if the formatted frame time value is 0:00:12 (the exact string format is determined by a project
setting), and the frame rate is 24 fps, the time would be 0.5 seconds (12/24). If the frame rate is 30 fps, the time
would be 0.4 seconds (12/30).
If the time is a duration, the frames are counted from 0. Otherwise, the frames are counted from the project's
starting frame (see "Project displayStartFrame attribute" on page 111).
Parameters
f o r m a tt e d T i m e
The frame time value, a string specifying a number of frames in the project's current time display format.
Description
Clears text from the Info panel.
Converts string time value to a numeric time value.
Converts a numeric time value to a string time value.
Writes text to the Info panel, with no line break added.
Writes text to the Info panel, adding a line break at the end.
,
ale rt
c o n f ir m
Global functions
, and
) and static functions for file
p r o m pt
16
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents