Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

How to get current layer type (text, art, group layer, etc.)r discussion here

$
0
0

Hi,

 

I am traversing over all layers using layerIndex.

I can get current later name in following way.

 

char* layerName = new char[100];

int32 len = 100;

PIUGetInfoByIndex(layerIndex,classLayer, keyName, layerName , &len) ;

 

I tried  using the keys keyType and keyGroup in the same way but I am not able to directly get type of the layer. Why?

 

Also, I found similar discussion, which is check the layer is SectionStart, SectionEnd or SectionContent.

Get Layer Groups from C++ plugin

 

If the layer is a "SectionContent", how to I further check its type (artlayer, textlater, adjustmentlayer, ect) ?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>