Skip to content

Commit

Permalink
Expand on AEP docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Apr 26, 2023
1 parent 6340b05 commit cee9d30
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 12 deletions.
51 changes: 43 additions & 8 deletions docs/aep.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ the first 4 bytes of {sl:`opti`} will change based on the file format.
* {sl:`cmta`}: (optional) Comment
* {sl:`LIST` `tdgp`}: [Property group](#property-groups)

When parsing layer transforms, keep in mind the default position is the center of the comp.
For shape layers, the default anchor is \[0, 0\];
for precomp layers the default anchor is the center of the comp (same as position).

#### Asset Layer

Layer type `0`.
Expand Down Expand Up @@ -360,6 +364,16 @@ Follows the usual {sl:`LIST` `tdbs`}, check {sl:`tdb4`} for the "Integer" proper
* {sl:`mkif`}: Basic mask properties
* {sl:`LIST` `tdgp`}: Animated properties

#### Layer Overrides

* `LIST OvG2`
* `CprC`: `uint32`?

#### Layer Source Alternate

* `blsv`: `uint32` Layer index?
* `blsi`: `uint32`

#### Chunk naming

Most of property related chunks seem to contain the prefix `td` in their name:
Expand Down Expand Up @@ -480,6 +494,10 @@ ADBE Time Remapping : prop=tm
ADBE Effect Parade : prop=ef
ADBE Marker : Markers
ADBE Mask Parade : prop=masksProperties
ADBE Plane Options Group :
ADBE Data Group :
ADBE Layer Overrides :
ADBE Source Options Group :

{aep_mn}
ADBE Camera Options Group : object=layers/camera-layer : Marks a layer as a camera layer
Expand All @@ -493,6 +511,24 @@ ADBE Mask Offset : prop=x : 0
ADBE Mask Feather : : \[0, 0\]
ADBE Mask Opacity : prop=0 : 100

{aep_mn}
ADBE Extrsn Options Group :
ADBE Bevel Direction :

{aep_mn}
ADBE Material Options Group :
ADBE Appears in Reflections :
ADBE Reflection Coefficient :
ADBE Glossiness Coefficient :
ADBE Fresnel Coefficient :
ADBE Transparency Coefficient :
ADBE Transp Rolloff :
ADBE Index of Refraction :

{aep_mn}
ADBE Source Options Group :
ADBE Layer Source Alternate

### Shapes

{aep_mn}
Expand Down Expand Up @@ -1232,18 +1268,17 @@ All keyframe items start like this:
| | 1 | | |
| Time | 2 | Time | Time of the keyframe, seems they always start from 0. |
| | 2 | | |
| Attributes | 1 | Flags | |
| Ease Mode | 1 | `uint8` | |
| Label Color | 1 | `uint8` | Color index, see {sl:`ldta`} for values |
| Extra Attributes | 1 | Flags | |

Attributes:
| Attributes | 1 | Flags | |

* Linear (0, 0) seems to be on then Ease is off
* Ease (0, 1)
* Hold (0, 2)
Ease Mode:
1. Linear
2. Ease
3. Hold


Extra Attributes:
Attributes:

Least significant 3 bits seems to always be on.

Expand Down
6 changes: 4 additions & 2 deletions docs/layers.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ follows the path (`ao` is 1).
A matte allows using a layer as a mask for another layer.

The way it works is the layer defining the mask has a `tt` attribute with the
appropriate [value](constants.md#mattemode)
and it affects the layer on top (the layer before it in the layer list, which has the `td` attribute).
appropriate [value](constants.md#mattemode).
By defaults it affects the layer on top (the layer before it in the layer list, which has the `td` attribute),
otherwise check the `tp` attribute.


In this example there's a layer with a rectangle and a star being masked by an ellipse:

Expand Down
11 changes: 9 additions & 2 deletions docs/schema/layers/visual-layer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,19 @@
"tt": {
"title": "Matte Mode",
"caniuse": "property-matte-mask",
"$ref": "#/$defs/constants/matte-mode"
"$ref": "#/$defs/constants/matte-mode",
"description": "Defines the track matte mode for the layer"
},
"tp": {
"title": "Matte Parent",
"type": "integer",
"description": "Index of the layer used as matte, if omitted assume the layer above the current one"
},
"td": {
"title": "Matte Target",
"caniuse": "property-matte-mask",
"type": "integer"
"type": "#/$defs/helpers/int-boolean",
"description": "If set to 1, it means a layer is using this layer as a track matte"
},
"hasMask": {
"title": "Has Masks",
Expand Down

0 comments on commit cee9d30

Please sign in to comment.