Copy link to clipboard
Copied
I have a document of 100 groups. is there a script that I can run that will merge all groups into a flattened layer?
For context: I create hand-drawn animations. Each "group" has 5 layers. My challenge is that the file is much too robust to bring into after effects where I animate it. My solution is that I flatten all my layers and then after effects can handle it just fine.
Thank you!
Copy link to clipboard
Copied
Hi,
Check out this thread: https://community.adobe.com/t5/photoshop-ecosystem-discussions/how-to-merge-multiple-groups-and-keep...
Copy link to clipboard
Copied
That did it! Thank you
Copy link to clipboard
Copied
Convert each group to a smart object, then go to file -> export ->layers to file
then import the file into after effect as image sequence
Copy link to clipboard
Copied
Thank you. Is there a way to automate the process of making all groups smart objects? I have A LOT of groups 🙂
Copy link to clipboard
Copied
In my case, I create a customized shortcut for "convert to smart object " it makes life musch easier 🙂
Copy link to clipboard
Copied
Or you can try a slightly different solution ( written by @SuperMerlin) from this older Photoshop scripting thread:
Script to Merge each main group (not subgroup) in to a layer
Something like this?
#target photoshop; while(app.activeDocument.layerSets.length){ activeDocument.activeLayer = app.activeDocument.layerSets[0]; executeAction(stringIDToTypeID("newPlacedLayer"), new ActionDescriptor(), DialogModes.NO); activeDocument.activeLayer.rasterize(RasterizeType.ENTIRELAYER); }
By @SuperMerlin
If that works for you
have fun
😉
Copy link to clipboard
Copied
Nice script!
A related topic here too: