|
Prev: LaPazz tablet problem with Photoshop CS4 and OS X
Next: Photoshop CS4 Not Responding When Editing PSD
From: jpuopolo on 20 Aug 2009 15:48 Hi All, I'm a professional software developer, but new to Photoshop and ExtendScript. In a nutshell: * I have a PSD file that contains several Layers (in ExtendScript they each is called an ArtLayer). * Each ArtLayer contains one image. * I would like to write an ExtendScript that opens the PSD file, accesses each ArtLayer, find the bounds of the image contained in the layer, and then replace the image with a new one of equal size/ dimensions. * So far, I am abke to open the PSD and get all the ArtLayers, but I don't know how to access the image data contained in the ArtLayer or how to "set" a new image. Any help appreciated. Thanks. jpuopolo
From: John Stafford on 20 Aug 2009 16:50 On 8/20/09 2:48 PM, in article 11baba4d-7fb2-47d9-8e94-3400eadea809(a)a26g2000yqn.googlegroups.com, "jpuopolo" <puopolo(a)gmail.com> wrote: > Hi All, > > I'm a professional software developer, but new to Photoshop and > ExtendScript. > > In a nutshell: > > * I have a PSD file that contains several Layers (in ExtendScript they > each is called an ArtLayer). > * Each ArtLayer contains one image. > * I would like to write an ExtendScript that opens the PSD file, > accesses each ArtLayer, find the bounds of the image contained in the > layer, and then replace the image with a new one of equal size/ > dimensions. > * So far, I am abke to open the PSD and get all the ArtLayers, but I > don't know how to access the image data contained in the ArtLayer or > how to "set" a new image. > > Any help appreciated. Thanks. How about BATCH using File-Scripts-Output Layers to Files Then use File-Automate-Fit Image to adjust each one to the same size (again, in Batch). Then load them as stacks, layers, save. It will be faster than cutting code.
From: Fred on 22 Aug 2009 03:56
> Hi All, > > I'm a professional software developer, but new to Photoshop and > ExtendScript. > > In a nutshell: > > * I have a PSD file that contains several Layers (in ExtendScript they > each is called an ArtLayer). > * Each ArtLayer contains one image. > * I would like to write an ExtendScript that opens the PSD file, > accesses each ArtLayer, find the bounds of the image contained in the > layer, and then replace the image with a new one of equal size/ > dimensions. > * So far, I am abke to open the PSD and get all the ArtLayers, but I > don't know how to access the image data contained in the ArtLayer or > how to "set" a new image. > > Any help appreciated. Thanks. > > jpuopolo You could try these forums too: http://forums.adobe.com/community/design_development I can't help you, but thanks for the ArtLayer info. Good luck. fred |