Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Source Text property

  • Source Text property

    Posted by Syed Iqbal on May 6, 2017 at 12:47 pm

    Hi
    From AE scripting guide I got this snippet:

    var myTextDocument = newTextDocument(“HappyCake”);
    myTextLayer.property(“SourceText”).setValue(myTextDocument);

    In the above example, the code is inking sourceText value to an external text file named “HappyCake”.

    Is there any way to direct it to use clipboard or text copied in memory as layer’s sourceText?

    Thanks
    Syed

    Walter Soyka replied 9 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Walter Soyka

    May 6, 2017 at 5:44 pm

    [Syed Iqbal] “Is there any way to direct it to use clipboard or text copied in memory as layer’s sourceText?”

    ExtendScript doesn’t have a way to get at clipboard data. You can work around this in Ae with system.callSystem() and some clipboard-related command line utilities, like clip.exe and paste.exe on Windows (paste available separately!), or pbcopy and pbpaste on macOS.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy