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

Layer hierarchy - Groups and Shapes

$
0
0

Hello,

 

I am trying to get a tree of layers from .psd file.

My code is based on information found in Photoshop SDK 3.0.4. I didn't find any newer SDK with file format definition.

What I need is just to get a correct layers, shapes, masks and groups hierarchy of psd file.


I have it almost done, but I have a problem to find a difference in between GROUP type of layer and SHAPE type of layer. Shape layer has the same flags as group, but there is missing end tag in the name of layer (GROUP end with </Layer group> tag).
Is there any other flag that I should use instead of layer's flag byte and layer's name ?

Could you advice how could I distinguish Groups and Shapes layers ?

 

Thank you.

 

Peter


Viewing all articles
Browse latest Browse all 54282

Trending Articles



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