Adobe 65009963 Scripting Manual page 95

After effects cs4
Table of Contents

Advertisement

JavaScript Reference
n a m e
A string containing the name of the solid.
w i dt h
The width of the solid in pixels, an integer in the range [4..30000].
h ei g ht
The height of the solid in pixels, an integer in the range [4..30000].
p i xe l A s pe c t
The pixel aspect ratio of the solid, a floating-point value in the range [0.01..100.0].
d u r a ti o n
Optional, the length of a still layer in seconds, a floating-point value.
If supplied, sets the
user preferences. By default, this is the same as the duration of the containing CompItem. To set another
preferred value, choose Edit > Preferences > Import (Windows) or After Effects > Preferences > Import (Mac
OS), and specify options under Still Footage.
Returns
AVLayer object.
LayerCollection addText() method
a pp .p r o j e c t .i te m (i nd e x) .l ay e r s .ad d T e x t( s ou r c e T e x t )
Description
Creates a new text layer and adds the new TextLayer object to this collection.
Parameters
s o u r ce T e x t
Returns
TextLayer object.
LayerCollection byName() method
a pp .p r o j e c t .i te m (i nd e x) . l a y e r s . b y N a m e (n a m e)
Description
Returns the first (topmost) layer found in this collection with the specified name, or null if no layer with the
given name is found.
Parameters
n a m e
Returns
Layer object or null.
d u r a ti o n
value of the new layer. Otherwise, the
Optional; a string containing the source text of the new layer, or a TextDocument object contain-
ing the source text of the new layer. See "TextDocument object" on page 171.
A string containing the name.
LayerCollection object
95
du rat i on
value is set according to
95

Advertisement

Table of Contents
loading

This manual is also suitable for:

Creative suite 3 after effects

Table of Contents