Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Plugin and Companion App SDK
Viewing all articles
Browse latest Browse all 54282

Get paragraph style details of text layer.

$
0
0

Hi All,

 

I am developing an extension for Photoshop CS6 onwards. I want to get the paragraph style and its properties of my text layer. If I apply a new style and try to get the properties, I always get the Basic Paragraph properties and not the properties of the applied style. I am unable to understand this behaviour. Here is the code I am using,

 

var curLayer = app.activeDocument.activeLayer;

var activeTextItem = curLayer.textItem;

if(activeTextItem.contents != "")

{

    alert(activeTextItem.font);

}

 

I always get the font details of the Basic Paragraph style.

 

Am I missing something?


Viewing all articles
Browse latest Browse all 54282

Trending Articles