4 Replies Latest reply on Jul 12, 2010 4:43 PM by flashpimp

    Scripting: text paragraph properties

      I would like to create centered text from a script. AFAICT, paragraph properties are not text properties. Is there a way to get a "paragraph" object from a TextLayer? I can't find anything relevant in the AE scripting guide, nor in these forums.

      Here is a script I wrote to set the "Grouping Alignment," but that property is apparently unrelated.

      /* ExtendScript: create some text and set "Grouping Alignment" */
      function main() {
      var text_layer = app.project.item(1).layers.addText("Hello");
      var align = text_layer("Text")("More Options")("Grouping Alignment");
      align.setValue([100, 100]);
      }
      main()

      Thanks!
      Jason