You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7137a99
Browse filesBrowse the repository at this point in the historyBrowse files
- Added: [GuideOrientationType](../other/guideoptions.md#guideorientationtype) and [GuidePositionType](../other/guideoptions.md#guidepositiontype) enumerated values
22
18
- Added: [Item.getGuideAsObject()](../item/item.md#itemgetguideasobject) and [Layer.getGuideAsObject()](../layer/layer.md#layergetguideasobject)
23
19
- Added: `GuideOptions` overloads of [Item.addGuide()](../item/item.md#itemaddguide) / [Item.setGuide()](../item/item.md#itemsetguide) and [Layer.addGuide()](../layer/layer.md#layeraddguide) / [Layer.setGuide()](../layer/layer.md#layersetguide)
20
+
- Scripting access added to the render-stage popup on layer parameters (the dropdown that picks Source, Only Masks, or All Effects):
21
+
- Added: [Property.layerInputStage](../property/property.md#propertylayerinputstage) and [Property.setLayerInputStage()](../property/property.md#propertysetlayerinputstage)
22
+
- Added: [Property.inputLayerAndStage](../property/property.md#propertyinputlayerandstage) and [Property.setInputLayerAndStage()](../property/property.md#propertysetinputlayerandstage)
**Breaking change:** The integer values behind `orientationType` and `positionType` on [Item.guides](../item/item.md#itemguides) / [Layer.guides](../layer/layer.md#layerguides) differ between versions of After Effects. In the beta, always compare against the enumerated constants rather than raw integer literals.
27
-
28
-
---
29
-
30
-
## After Effects 26
27
+
**Breaking change:** The integer values behind `orientationType` and `positionType` on [Item.guides](../item/item.md#itemguides) / [Layer.guides](../layer/layer.md#layerguides) differ between versions of After Effects. Always compare against the enumerated constants rather than raw integer literals.
@@ -245,20 +245,20 @@ if (/Composition|Komposition|Composición|Composizione|コンポジション|컴
245
245
`app.project.item(index).addGuide(guideOptions)`
246
246
247
247
!!! note
248
-
The `(orientationType, position)` form was added in After Effects 16.1 (CC 2019). The `GuideOptions` form was added in After Effects (Beta) 26.5 and is subject to change while it remains in Beta.
248
+
The `(orientationType, position)` form was added in After Effects 16.1 (CC 2019). The `GuideOptions` form was added in After Effects 26.5.
249
249
250
250
#### Description
251
251
252
252
Adds a guide to the item's view and returns its index. There are two forms:
253
253
254
254
-**`addGuide(orientationType, position)`** - adds a pixel guide using an orientation and a pixel position.
255
-
-**`addGuide(guideOptions)`** - adds a guide described by a [GuideOptions](../other/guideoptions.md) object, allowing percentage positioning, per-guide color, and pinning. *(After Effects (Beta) 26.5 and later; calling this form in an earlier version raises an error.)*
255
+
-**`addGuide(guideOptions)`** - adds a guide described by a [GuideOptions](../other/guideoptions.md) object, allowing percentage positioning, per-guide color, and pinning. *(After Effects 26.5 and later; calling this form in an earlier version raises an error.)*
|`orientationType`| Integer |`0` for a horizontal guide, `1` for a vertical guide. Any other value defaults to horizontal. In After Effects (Beta) 26.5 and later you may also pass `GuideOrientationType.HORIZONTAL` / `GuideOrientationType.VERTICAL`. |
261
+
|`orientationType`| Integer |`0` for a horizontal guide, `1` for a vertical guide. Any other value defaults to horizontal. In After Effects 26.5 and later you may also pass `GuideOrientationType.HORIZONTAL` / `GuideOrientationType.VERTICAL`. |
262
262
|`position`| Floating-point value | The X or Y coordinate position of the guide in pixels. Clamped to ±100,000; non-finite values are rejected. |
263
263
|`guideOptions`| GuideOptions object | A [GuideOptions](../other/guideoptions.md) describing the new guide. |
This functionality was added in After Effects (Beta) 26.5 and is subject to change while it remains in Beta. Calling it in an earlier version raises the error "getGuideAsObject() is not available in this version of After Effects."
294
+
This functionality was added in After Effects 26.5. Calling it in an earlier version raises the error "getGuideAsObject() is not available in this version of After Effects."
The `(position, guideIndex)` form was added in After Effects 16.1 (CC 2019). The `(guideIndex, guideOptions)` form was added in After Effects (Beta) 26.5 and is subject to change while it remains in Beta.
380
+
The `(position, guideIndex)` form was added in After Effects 16.1 (CC 2019). The `(guideIndex, guideOptions)` form was added in After Effects 26.5.
381
381
382
382
#### Description
383
383
384
384
Updates an existing guide. There are two forms, distinguished by the type of the second argument:
385
385
386
386
-**`setGuide(position, guideIndex)`** - moves the guide at `guideIndex` to a new pixel `position`. *Note the order: position first, index second.* A guide's `orientationType` may not be changed after it is created.
387
-
-**`setGuide(guideIndex, guideOptions)`** - applies the properties set on a [GuideOptions](../other/guideoptions.md) object to the guide at `guideIndex`. Only the properties you set are changed (partial update). *(After Effects (Beta) 26.5 and later.)*
387
+
-**`setGuide(guideIndex, guideOptions)`** - applies the properties set on a [GuideOptions](../other/guideoptions.md) object to the guide at `guideIndex`. Only the properties you set are changed (partial update). *(After Effects 26.5 and later.)*
388
388
389
389
!!! warning
390
390
The two forms take their arguments in the **opposite order**: the `(position, guideIndex)` form takes the position first, while the `(guideIndex, guideOptions)` form takes the index first. After Effects decides which form you mean from the type of the second argument (a number selects the `(position, guideIndex)` form; a `GuideOptions` object selects the `(guideIndex, guideOptions)` form).
@@ -103,7 +103,7 @@ In After Effects (Beta) 26.5 and later, each entry has the following properties:
103
103
|`pinned`| Boolean |`true` if pinned to the opposite (bottom/right) edge. |
104
104
105
105
!!! warning "Differences between versions"
106
-
**Breaking change:** The integer values behind `orientationType` and `positionType` differ between versions of After Effects. In the beta, always compare against the enumerated constants (for example [GuideOrientationType.HORIZONTAL](../other/guideoptions.md#guideorientationtype)) rather than raw integer literals — a test such as `guide.orientationType === 0` is not portable and may stop matching in a future version.
106
+
**Breaking change:** The integer values behind `orientationType` and `positionType` differ between versions of After Effects. Always compare against the enumerated constants (for example [GuideOrientationType.HORIZONTAL](../other/guideoptions.md#guideorientationtype)) rather than raw integer literals — a test such as `guide.orientationType === 0` is not portable and may stop matching in a future version.
The `(orientationType, position)` form was added in After Effects 16.1 (CC 2019). The `GuideOptions` form was added in After Effects (Beta) 26.5 and is subject to change while it remains in Beta.
422
+
The `(orientationType, position)` form was added in After Effects 16.1 (CC 2019). The `GuideOptions` form was added in After Effects 26.5.
423
423
424
424
#### Description
425
425
426
426
Adds a guide to the layer's view and returns its index. There are two forms:
427
427
428
428
-**`addGuide(orientationType, position)`** - adds a pixel guide using an orientation and a pixel position.
429
-
-**`addGuide(guideOptions)`** - adds a guide described by a [GuideOptions](../other/guideoptions.md) object, allowing percentage positioning, per-guide color, and pinning. *(After Effects (Beta) 26.5 and later; calling this form in an earlier version raises an error.)*
429
+
-**`addGuide(guideOptions)`** - adds a guide described by a [GuideOptions](../other/guideoptions.md) object, allowing percentage positioning, per-guide color, and pinning. *(After Effects 26.5 and later; calling this form in an earlier version raises an error.)*
|`orientationType`| Integer |`0` for a horizontal guide, `1` for a vertical guide. Any other value defaults to horizontal. In After Effects (Beta) 26.5 and later you may also pass `GuideOrientationType.HORIZONTAL` / `GuideOrientationType.VERTICAL`. |
435
+
|`orientationType`| Integer |`0` for a horizontal guide, `1` for a vertical guide. Any other value defaults to horizontal. In After Effects 26.5 and later you may also pass `GuideOrientationType.HORIZONTAL` / `GuideOrientationType.VERTICAL`. |
436
436
|`position`| Floating-point value | The X or Y coordinate position of the guide in pixels. Clamped to ±100,000; non-finite values are rejected. |
437
437
|`guideOptions`| GuideOptions object | A [GuideOptions](../other/guideoptions.md) describing the new guide. |
This functionality was added in After Effects (Beta) 26.5 and is subject to change while it remains in Beta. Calling it in an earlier version raises the error "getGuideAsObject() is not available in this version of After Effects."
575
+
This functionality was added in After Effects 26.5. Calling it in an earlier version raises the error "getGuideAsObject() is not available in this version of After Effects."
The `(position, guideIndex)` form was added in After Effects 16.1 (CC 2019). The `(guideIndex, guideOptions)` form was added in After Effects (Beta) 26.5 and is subject to change while it remains in Beta.
738
+
The `(position, guideIndex)` form was added in After Effects 16.1 (CC 2019). The `(guideIndex, guideOptions)` form was added in After Effects 26.5.
739
739
740
740
#### Description
741
741
742
742
Updates an existing guide. There are two forms, distinguished by the type of the second argument:
743
743
744
744
-**`setGuide(position, guideIndex)`** - moves the guide at `guideIndex` to a new pixel `position`. *Note the order: position first, index second.* A guide's `orientationType` may not be changed after it is created.
745
-
-**`setGuide(guideIndex, guideOptions)`** - applies the properties set on a [GuideOptions](../other/guideoptions.md) object to the guide at `guideIndex`. Only the properties you set are changed (partial update). *(After Effects (Beta) 26.5 and later.)*
745
+
-**`setGuide(guideIndex, guideOptions)`** - applies the properties set on a [GuideOptions](../other/guideoptions.md) object to the guide at `guideIndex`. Only the properties you set are changed (partial update). *(After Effects 26.5 and later.)*
746
746
747
747
!!! warning
748
748
The two forms take their arguments in the **opposite order**: the `(position, guideIndex)` form takes the position first, while the `(guideIndex, guideOptions)` form takes the index first. After Effects decides which form you mean from the type of the second argument (a number selects the `(position, guideIndex)` form; a `GuideOptions` object selects the `(guideIndex, guideOptions)` form).
Copy file name to clipboardExpand all lines: docs/other/guideoptions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
`new GuideOptions()`
4
4
5
5
!!! note
6
-
This functionality was added in After Effects (Beta) 26.5 and is subject to change while it remains in Beta.
6
+
This functionality was added in After Effects 26.5
7
7
8
8
#### Description
9
9
@@ -105,7 +105,7 @@ The orientation of a guide, used by [GuideOptions.orientation](#guideoptionsorie
105
105
|`GuideOrientationType.VERTICAL`| A vertical guide. |
106
106
107
107
!!! note
108
-
These enumerated constants were added in After Effects (Beta) 26.5 and are subject to change while they remain in Beta. Always compare `orientationType` against these constants rather than raw integers, because the underlying integer values differ between versions of After Effects. In the non-beta application the constants are unavailable and [Item.guides](../item/item.md#itemguides) / [Layer.guides](../layer/layer.md#layerguides) report `orientationType` as a plain integer (`0` for horizontal, `1` for vertical).
108
+
These enumerated constants were added in After Effects 26.5. Always compare `orientationType` against these constants rather than raw integers, because the underlying integer values differ between versions of After Effects. In versions prior to 26.5, the constants are unavailable and [Item.guides](../item/item.md#itemguides) / [Layer.guides](../layer/layer.md#layerguides) report `orientationType` as a plain integer (`0` for horizontal, `1` for vertical).
109
109
110
110
---
111
111
@@ -119,4 +119,4 @@ How a guide's `position` value is interpreted, used by [GuideOptions.positionTyp
119
119
|`GuidePositionType.PERCENTAGE`|`position` is measured as a percentage of the frame. |
120
120
121
121
!!! note
122
-
These enumerated constants were added in After Effects (Beta) 26.5 and are subject to change while they remain in Beta. Always compare `positionType` against these constants rather than raw integers, because the underlying integer values differ between versions of After Effects. In the non-beta application the constants are unavailable and [Item.guides](../item/item.md#itemguides) / [Layer.guides](../layer/layer.md#layerguides) report `positionType` as a plain integer (always `0`, pixels).
122
+
These enumerated constants were added in After Effects 26.5. Always compare `positionType` against these constants rather than raw integers, because the underlying integer values differ between versions of After Effects. In versions prior to 26.5, the constants are unavailable and [Item.guides](../item/item.md#itemguides) / [Layer.guides](../layer/layer.md#layerguides) report `positionType` as a plain integer (always `0`, pixels).
0 commit comments