Help
Using Help
Type
String; read-only.
Example
confir m( "You are: " + system.userName + " r unning on " + system.machineName + ".");
TextDocument object
Description
The TextDocument object holds a string an attribute named "text." It is used to store values for a text layer's
Source Text property.
Attributes
Attribute
text
Methods
Method
Tex t D o c u m e n t ( )
Examples
Set a value of some source text and then display an alert showing the new value:
1
var myTextDo cu me n t = n ew TextD oc u me n t(" Ha p py Cake" );
myTextLayer. proper t y("Source Text").setValue(myTextDocument);
aler t(myTextLayer.proper t y("Source Text").getValue());
2
Set keyframe values for text that will show different words over time:
var textProp = my TextLayer. proper t y("Source Text");
textProp.setValueAtTime(0, new TextDocument("Happy"));
textProp.se tVa lu e AtTime(. 33, n e w Tex tD oc u me nt (" c ake" ));
textProp.se tVa lu e AtTime(. 66, n e w Tex tD oc u me nt (" i s" ));
textProp.se tVa lu e AtTime(1, n ew TextD oc u me n t(" yu mmy!" ));
TextDocument text attribute
Tex t D o c u m e n t . tex t
Description
The actual text string stored in this TextDocument.
Type
String; read/write.
Using Help
Reference
see "TextDocument text attribute" on
page 177
Reference
see "TextDocument TextDocument()
method" on page 178
Reference
Back
Description
text string stored in the TextDocument
Description
constructor to create a TextDocument
Back
177
177