Adobe 65009963 Scripting Guide - Page 14

Object summary, JavaScript Reference, The After Effects Object Model

Page 14 highlights

JavaScript Reference The After Effects Object Model 14 The application contains a Project panel, which displays a project. The project contains compositions, which contain layers. The source for a layer can be a footage file, placeholder, or solid, also listed in the Project panel. Each layer contains settings known as properties, and these can contain markers and keyframes. The render queue contains render-queue items as well as render settings and output modules. All of these entities are represented by objects in scripting. NOTE: To avoid ambiguity, this manual uses the term "attribute" to refer to JavaScript object properties, and the term "property" or "AE property" to refer to After-Effects layer properties. Object summary The following table lists all objects alphabetically, with links to the documentation page for each. Object "Global functions" on page 16 "Application object" on page 19 "AVItem object" on page 32 "AVLayer object" on page 39 "CameraLayer object" on page 50 "Collection object" on page 51 "CompItem object" on page 52 Description Globally available functions that allow you to display text for script debugging purposes, and help convert time values between seconds and frames. A single global object, available by its name (a p p ), that provides access to objects and application settings within the After Effects application. Represents audio/visual files imported into After Effects. Represents those layers that contain AVItem objects (Comp layers, footage layers, solid layers, text layers, and sound layers). Represents a camera layer within a composition. Associates a set of objects or values as a logical group and provides access to them by index. Represents a composition, and allows you to manipulate it and get information about it. 14

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193

14
JavaScript Reference
The After Effects Object Model
14
The application contains a Project panel, which displays a
project
. The project contains
compositions
, which
contain
layers
. The source for a layer can be a
footage file
,
placeholder
, or
solid
, also listed in the Project panel.
Each layer contains settings known as
properties
, and these can contain
markers
and
keyframes
. The
render
queue
contains
render-queue items
as well as render settings and
output modules
. All of these entities are repre-
sented by objects in scripting.
NOTE: To avoid ambiguity, this manual uses the term “attribute” to refer to JavaScript object properties, and the
term “property” or “AE property” to refer to After-Effects layer properties.
Object summary
The following table lists all objects alphabetically, with links to the documentation page for each.
Object
Description
“Global functions” on page 16
Globally available functions that allow you to display text for script debugging purposes,
and help convert time values between seconds and frames.
“Application object” on page 19
A single global object, available by its name (
app
), that provides access to objects and
application settings within the After Effects application.
“AVItem object” on page 32
Represents audio/visual files imported into After Effects.
“AVLayer object” on page 39
Represents those layers that contain AVItem objects (Comp layers, footage layers, solid
layers, text layers, and sound layers).
“CameraLayer object” on page 50
Represents a camera layer within a composition.
“Collection object” on page 51
Associates a set of objects or values as a logical group and provides access to them by
index.
“CompItem object” on page 52
Represents a composition, and allows you to manipulate it and get information about it.