FORUMS: list search recent posts

Source Text property

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Syed Iqbal
Source Text property
on May 6, 2017 at 12:47:19 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


Return to posts index

Walter Soyka
Re: Source Text property
on May 6, 2017 at 5:44:14 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]