Skip navigation
Currently Being Moderated

How I can find what layers are selected(active) in export plugin

Sep 27, 2013 3:14 AM

Tags: #plugin #sdk #plugins #photshop

I write export plugin that should export only seleted(active) layers, how I can recive information about what layers are selected ?

  • Currently Being Moderated
    Oct 3, 2013 12:54 PM   in reply to Max_83

    I dont' see a way to do this in an export plugin. This information would be available in an automation plugin. It would get a little messy but here is one solution.


    You would need to write both and have them communicate information back and forth. Export, first round, does nothing but writes out descriptor parameters. Your automation plugin would be listening for this event and then see which layers are selected. Gather that data and "Play" the export again with the information it needs. Export plugin, second round, could use the channel ports calbacks to get the pixel data for the selected layers.


    The textauto + textformat examples in the sdk are doing something similar.

    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