Photoshop: Ability to convert to selected layers into Smart Objects

  • 1
  • Idea
  • Updated 1 year ago
  • (Edited)
Add a context menu item that converts selected layers each into there own smart object. If you have 50 layers and you need them to all be their own individual smart object you have to go through and do each one separately. it would be a great feature to have.
Photo of Izzy

Izzy

  • 1 Post
  • 0 Reply Likes

Posted 1 year ago

  • 1
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 15079 Posts
  • 2148 Reply Likes
This script will do that for all layers:

// enable double clicking from the // Macintosh Finder or the Windows Explorer
#target photoshop

// Make Photoshop the frontmost application
// in case we double clicked the file
app.bringToFront();

for (var i = 0; i < activeDocument.layers.length; i++) {
activeDocument.activeLayer = activeDocument.layers[i];

var idnewPlacedLayer = stringIDToTypeID( "newPlacedLayer" );
executeAction( idnewPlacedLayer, undefined, DialogModes.NO );

}
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 15079 Posts
  • 2148 Reply Likes
Official Response
Here's a script that will do it for only selected layers:

https://adobe.ly/2zfFq9e

I modified the code from here: https://forums.adobe.com/thread/2285411