Skip navigation
jaime485636696
Currently Being Moderated

How to get the layerKind in an automation plugin

Jun 28, 2011 1:55 PM

Does anyone know if there is a way to get a layers kind such as normal, solidfill, or fillgradient like is available when using scripts (app.documents[0].layers[0].kind)?

 
Replies
  • Currently Being Moderated
    Jun 24, 2012 2:35 PM   in reply to jaime485636696

    If you look in the descriptor for the layer, the 'adjustment' (that's a string ID) key contains a list of descriptors (I've only ever seen this list have one item). The type of the descriptor for the list items tells you the type of adjustment layer. For a solid fill layer, for example, it is 'solidColorLayer' (another string ID), or for a gradient layer it’s 'gradientLayer'. A normal layer doesn't have the 'adjustment' property in its descriptor at all.

     
    |
    Mark as:

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