3

I want to explicitly select multiple layers (by reference, not by name or anything else involving re-searching something I already have a reference to!) and merge them in Adobe's Javascript (aka. Extendscript).

I can set the document's activeLayer, but it won't take an array of layers.

Nadh
  • 6,987
  • 2
  • 21
  • 21
George R
  • 3,784
  • 3
  • 34
  • 38

1 Answers1

1

What you're looking for is the LayerSet object which refers to a group of layers including nested LayerSet's -Photoshop Javascript Reference. You can manipulate all layers within a layer set with a single command like this:

LayerSet.merge();
pdizz
  • 4,100
  • 4
  • 28
  • 42