Skip to content

Commit

Permalink
add ThreeDModelLayer link and description
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-olsen committed Apr 12, 2024
1 parent 72a618e commit 2c285c6
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Welcome to the After Effects Scripting Guide!
layers/lightlayer
layers/shapelayer
layers/textlayer
layers/threedmodellayer

.. toctree::
:maxdepth: 1
Expand Down
51 changes: 51 additions & 0 deletions docs/layers/threedmodellayer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.. highlight:: javascript

.. _ThreeDModelLayer:

ThreeDModelLayer object
################################################

``app.project.item(index).layer(index)``

**Description**

The ThreeDModelLayer object represents a 3D Model layer within a composition.

ThreeDModelLayer is a subclass of :ref:`AVLayer`. All methods and attributes of AVLayer are available when working with ThreeDModelLayer.

**AE Properties**

ThreeDModelLayer inherits the following properties and property groups from :ref:`AVLayer`:

- Marker
- Time Remap
- Transform

- Anchor Point
- Position
- Scale
- Orientation
- X Rotation
- Y Rotation
- Rotation
- Opacity

- Layer Styles
- Audio

- AudioLevels

**Example**

If the first item in the project is a CompItem, and the first layer of that CompItem is an ThreeDModelLayer, the following checks its type.

.. code:: javascript
var modelLayer = app.project.item(1).layer(1);
if (modelLayer instanceof ThreeDModelLayer)
{
// do something
}

0 comments on commit 2c285c6

Please sign in to comment.