Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
graphic:javascript:afterfx [2018/05/09 02:04]
ying [Read AE Info]
graphic:javascript:afterfx [2020/01/06 12:02] (current)
ying [Read AE Info]
Line 111: Line 111:
 </​code>​ </​code>​
  
 +**Text Layer Info**
 +
 +<code javascript>​
 +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
 +</​code>​
 ====== 3D Space Calculation ====== ====== 3D Space Calculation ======
  
   * 2D_null layer'​s position set to 3D_null <code javascript>​thisComp.layer("​3D_null"​).toComp([0,​0,​0]);</​code>​   * 2D_null layer'​s position set to 3D_null <code javascript>​thisComp.layer("​3D_null"​).toComp([0,​0,​0]);</​code>​