Mobile app version of vmapp.org
Login or Join
Si6392903

: Can I automate saving different combinations of layers? I have a source file for an icon. It has a base layer which is the icon background, and a number of layer folders, each of which contains

@Si6392903

Posted in: #AdobePhotoshop #PhotoshopScripting #Windows

I have a source file for an icon. It has a base layer which is the icon background, and a number of layer folders, each of which contains layers for each individual icon. There are 20 or so of these folders. To save the icon set, I need to:


Make the base layer visible, and hide all other layers
Show the folder of the icon I want to save
Save the file, with an appropriate name (the name of the folder)
Hide that folder.
Repeat steps 2-4 for every folder


I've played around with the scripting in Photoshop but haven't been able to make something that does this automatically (it's an annoyingly time-consuming operation). Is it possible?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Si6392903

2 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo857

Photoshop Composition Composer will do just what you need. In your case use only a single top-level folder.

Usage


See the Example and the Preview below to learn how it works
Download and unzip photoshopCompositionComposer jsx-file
Open your project and navigate to File > Scripts > Browse...
Browse and load the downloaded jsx file


Example

Layers


Group animals.


Layer dog_
Group cat_

Group background.


Layer sea_
Group space_
Layer underWater_





Resulting Compositions


animals.dog_background.sea_
animals.dog_background.space_
animals.dog_background.underWater_
animals.cat_background.sea_
animals.cat_background.space_
animals.cat_background.underWater_


Preview

10% popularity Vote Up Vote Down


 

@LarsenBagley460

Yes! Here's what you do. Open the Layer Comps window in photoshop. Click the snapshot button, hide your current layer, show the next layer, click the snapshot again. Create a layer comp snapshot for each state of your document that you want to have exported as individual files. Once you have all of those ready, go to File > Scripts > Layer Comps to Files. Set up your destinate folder and image settings, then export and you will have all of those layer comps as single images.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme