Skip to content

hos/ae-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ae-node

This project only exports high level public API. There is no interface for advanced Ae usage, which means that low level interfaces not recommended for using, though they can be called by requiring files directly.

Installation

  • The OMTemplate which must be used, first must be installed. See how to configure output module in docs.
  • If there is no Ae license installed, better to use render only mode.
  • Set required environment variables.

Methods

The API description is provided in examples. This will let to have working examples and docs in one place, without code duplication.


// the output
const output = { uri: "s3/path/to/output-file" };
// the output
const output = [
  // each element is a single .aep file
  {
    // path to project can be nested like 'category/project.aep'
    project: "/project.aep",
    // each element is for single composition
    compositions: [
      {
        // the composition name which will be used to render
        name: "Composition",

        // the composition's original resolution
        height: 2304,
        width: 4096,

        // duration of the composition
        duration: 5.37203870537204,

        // the FPS
        frameRate: 29.9700012207031,

        // text, image and video layers found in composition
        layers: [
          {
            name: "logo.png",
            // path relative to template's root
            // will be used to replace it
            relativePath: "/(Footage)/_Project Files/Images/logo.png",

            // height and width of the footage
            height: 1237,
            width: 1200,

            // media type (text, image, video)
            mediaType: "image"
          },
          {
            // text layer
            // the name which will be used to replace the value
            name: "What a Story",
            // media type (text, image, video)
            mediaType: "text"
          }
        ]
      }
    ]
  }
];
// the output
const output = [
  // each element is a single composition
  {
    name: "Composition",
    // each element is a output request like:
    previews: [
      // this we get using `omTemplate: 'CineForm'`, which is video
      "UserName/Template/_preview/Composition/1080x1920.mov",
      // this is for `omTemplate: 'JPEG'`, the 90th frame (0090)
      "UserName/Template/_preview/Composition/1080x1920_0090.jpg"
    ]
  }
];