Skip navigation
isu_hawks
Currently Being Moderated

How are layer comps linked to layers in PSD file?

Mar 1, 2012 1:11 PM

Tags: #c++ #psd #layer_comp #layercomp #extract_info

I am currently developing an external c++ command line app to parse a PSD file (using the PSD spec - http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/PhotoshopF ileFormats.htm#50577409_17115) in order to extract some important information. One of the core things I need is the information linking layer comps to the layers themselves. In digging through the Image Resource section specifying "Layer Comps - 1065" I am only able to extract name, comments, etc. about the layer comp. The question I have is: how are layer comps referenced by the layers inside the PSD file? I need to know what layers are applied for each layer comp. In looking through the scripts provided with PS (for example Layer Comps to Files), the layer comp is always "applied" before looking to see what layers are inside that comp. It seems to be creating an Action and executing that action with the ClassID of the layer comp before looking at it's layers, so this method has to know about which layers are actually referred to by this layer comp. That, specifically is what I need to be able to do, and, thus far, haven't succeeded.

 

It's important that I stick with c++ & that this be an external application, so the Plugin SDK isn't much help here.

 

I would really appreciate any thoughts/suggestions on the matter.

 

Thanks all.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points