Table of Contents

Pass Javascript to AE

ScriptUI Script Structure

I mean: those from Window Menu > Script Window ones

Normal UI Script Structure

I mean: File menu > Scripts > Script Window ones

Develop AE in Javascript

to do

file brower like Piper
parent Zero parentConstraint, then zero all Archove,Position,Rotation,Scale
instance spacer instance and push back a step

AE Object Model

  1. system
  2. file
  3. folder
  4. socket
  5. application
    1. settings
    2. project

Project

Source

Read AE Info

Project Info

Layer Info

Text Layer Info

var result='';
if(app.project.activeItem.selectedLayers.length != 0) {
    layerName = app.project.activeItem.selectedLayers[0].name;
    textProp = app.project.activeItem.selectedLayers[0].property("Source Text");
    textDocument = textProp.value;
    result =textDocument.font; // get font name
    //textDocument.font = "Arial"; // set
    //textDocument.fontStyle = "Bold";
    //textDocument.fontSize = 36;
}
alert(result ); 
// ref: https://www.aenhancers.com/viewtopic.php?t=3084

3D Space Calculation