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

Get the value from character panel.

Contributor ,
Oct 31, 2013 Oct 31, 2013

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.

TOPICS
Actions and scripting

Views

499

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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