Search Unity

Extract layer info from psd file

Discussion in 'Scripting' started by the_gnoblin, Jul 13, 2010.

  1. the_gnoblin

    the_gnoblin

    Joined:
    Jan 10, 2009
    Posts:
    722
    Hello!

    Does anybody know a way to process a psd file (via actionscript in photoshop, some software or code in any language)?

    It would be awesome to extract info about position, size, name of layers in psd file and order in which they are stored.
    But I am kind of stuck with the task and don't know what to do.

    Help)) :D
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    the position and size of the layer is trivial: 0,0 and full size of image. Layers never cover only sub areas. You might have a mask that restricts it but the layer is still full image size.
     
  3. the_gnoblin

    the_gnoblin

    Joined:
    Jan 10, 2009
    Posts:
    722
    Well, if you select a layer - then a "frame" for image piece on that layer can be seen. It is possible that I refer to layers incorrectly (and the thing I need is called in some other way).
     
  4. 3k1m81

    3k1m81

    Joined:
    Aug 8, 2013
    Posts:
    1
    Hi,

    were you able to figure this out? I would like to extract layer data and ideally be able to place this back into the IPTC metadata of an asset.
    At the least, be able to extract this layer information into a text file of some sort.

    Help please