Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Get the value from character panel.

Contributor ,
Oct 31, 2013 Oct 31, 2013

Hi All,

I want to retrieve the values of text layer from Character Panel.

Is there any way for doing this?

Thanks.

TOPICS
Actions and scripting
564
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guru ,
Oct 31, 2013 Oct 31, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 31, 2013 Oct 31, 2013

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 31, 2013 Oct 31, 2013
LATEST

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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines