Adobe 65009963 Scripting Guide - Page 16
Global functions, clearOutput() global function, currentFormatToTime() global function
![]() |
UPC - 883919156262
View all Adobe 65009963 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 16 highlights
JavaScript Reference Global functions 16 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 clearOutput() currentFormatToTime() timeToCurrentFormat() write() writeLn() 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. Additional global functions for standard user I/O (alert, confirm, and prompt) and static functions for file 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 clearOutput() Description Clears the output in the Info panel. Parameters None. Returns Nothing. currentFormatToTime() global function currentFormatToTime(formattedTime, fps, isDuration) 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 t t 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. 16
![](/manual_guide/products/adobe-65009963-scripting-guide-619a2c2/16.png)