Copy link to clipboard
Copied
Hi All,
I want to retrieve the values of text layer from Character Panel.
Is there any way for doing this?
Thanks.
Copy link to clipboard
Copied
You may be able to get the info you want from the text layer itself but I don't think it is possible to get the info from the panel.
Copy link to clipboard
Copied
Thanks for the reply Michael,
I want to get some info of text layer like alignment, leading, bold, underline, tracking.. etc.
I have some text with paragraph styles and character styles.
Is there any way of doing it?
Copy link to clipboard
Copied
AI_learner schrieb:
Hi All,
I want to retrieve the values of text layer from Character Panel …
You can read some properties like this (tested in CS5):
var aLay= app.activeDocument.activeLayer;
if(aLay.textItem && aLay.textItem.contents != "")
$.writeln(aLay.textItem.reflect.properties); // check your console
alert("e.g.\rcontents: "+aLay.textItem.contents+"\rsize: "+aLay.textItem.size);