Skip to content

Commit

Permalink
Merge pull request #32 from thomasolsen4/master
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasolsen4 committed Apr 15, 2024
2 parents 72a618e + 2c285c6 commit 08bc5cc
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
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
@@ -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 08bc5cc

Please sign in to comment.