Is there a way to create a script for the use case below:
1) Select Layer
2) Trim transparent pixels
3) Export and save the selected layer/folder or layers/folders as individual psd files
- The psd file names will be the same name as the layers.
Thx.
Export Layer/Folder as a Psd file
-
mycort
Export Layer/Folder as a Psd file
Thanks for this, tried it out but it seems to only do layer sets and not single export of a layer or layers.........
Am I missing something?
Am I missing something?
-
Paul MR
Export Layer/Folder as a Psd file
It is difficult to create a script that does everything for everybody, there are two menus. One for layers only and one for documents that have layersets.
As you are using layersets, there is the option of saving all layers in all layersets.
Anything else would need a custom script as there might be nested layersets etc.
It depends on the useage required if a custom script would be required.
As a work-a-round, duplicate the layerset out to a new document, delete the layerset, then you will have more options to save your layers.
As you are using layersets, there is the option of saving all layers in all layersets.
Anything else would need a custom script as there might be nested layersets etc.
It depends on the useage required if a custom script would be required.
As a work-a-round, duplicate the layerset out to a new document, delete the layerset, then you will have more options to save your layers.
-
mycort
Export Layer/Folder as a Psd file
ah, true and i get it now.
any chance i can disable layer sets in the code to only use layers as the options? or even toggle manually between the 2 using a false and true variable?
any chance i can disable layer sets in the code to only use layers as the options? or even toggle manually between the 2 using a false and true variable?
-
Paul MR
Export Layer/Folder as a Psd file
Sorry, no it can't be toggled or altered, it would require a complete re-write.
The menus are automatic depending if any layerset exists.
The menus are automatic depending if any layerset exists.
-
mycort
Export Layer/Folder as a Psd file
ah, ok.
Do you think it's possible for me to just record the code needed with Script Listener with the following steps:
- Selecting layer
- Duplicate psd file
- Turn off other layers
- Trim
-Save as Psd using layer name
Do you think it's possible for me to just record the code needed with Script Listener with the following steps:
- Selecting layer
- Duplicate psd file
- Turn off other layers
- Trim
-Save as Psd using layer name
-
Paul MR
Export Layer/Folder as a Psd file
I wonder if this is closer to what you are after...
It will let you save selected layers
All layers from all layersets
All layers from selected layersets
Selected layersets
or All Layersets.
Edit : File removed due to errors
It will let you save selected layers
All layers from all layersets
All layers from selected layersets
Selected layersets
or All Layersets.
Edit : File removed due to errors
-
mycort
Export Layer/Folder as a Psd file
Hi Paul,
Thanks alot for recommending this and this is exactly what I need. The only thing is, I can't seem to save....the output options where you select the location to save it at...i can't seem to click on. I keep clicking the folder icon and does nothing.
Did you make this? I do have this version that I found on the internet and is different from this....
Ed.
Thanks alot for recommending this and this is exactly what I need. The only thing is, I can't seem to save....the output options where you select the location to save it at...i can't seem to click on. I keep clicking the folder icon and does nothing.
Did you make this? I do have this version that I found on the internet and is different from this....
Ed.
-
Paul MR
Export Layer/Folder as a Psd file
Sorry there was a typo in the script, also changed it to a button so hopefully it should work for you now.
Yes this is new one I've just written, please try this new version.
Yes this is new one I've just written, please try this new version.