Copy link to clipboard
Copied
How to expand Smart Objects in Photoshop Scripts
Have you even searched the web before posting?
Photoshop: Unpacking the smart object | Photoshop Family Customer Community
But (as as JJMack pointed out) the task is not possible in all cases – for example a Curves Layer in an RGB Smart Object could not be copied to a CMYK image containing the SO.
Copy link to clipboard
Copied
What do you mean by expand? Do you want to open the smart object or change the smart object layers current transform?
Copy link to clipboard
Copied
examples
Copy link to clipboard
Copied
You you would need to open the smart object layers object in Photoshop and copy the layer from the temp work document into the document containing the smart object layer than close the work document. and create a layer group of the layer you copied into the document. You will not be able to do that for all smart object layer. All objects may not open in Photoshop. If the smart object layer's object is a placed file the work document file may open in ACR or some other application like AI not Photoshop
Copy link to clipboard
Copied
Have you even searched the web before posting?
Photoshop: Unpacking the smart object | Photoshop Family Customer Community
But (as as JJMack pointed out) the task is not possible in all cases – for example a Curves Layer in an RGB Smart Object could not be copied to a CMYK image containing the SO.
Copy link to clipboard
Copied
You can check my script: Magic scripts for Photoshop
Anyway I am working on new fastest version with cleaner code. It will be able reproduce most of SO transformations.
If you need this in your script and you don't need exact placement, content resize, styles scaling ect. you can use "place" method (AM code) with "expand" flag. But first you need to convert your smartObject into linked object and then get your path to file. So you will need about 20-30 lines of code instead 200-500.
You can check this method in library panel. Hold "Alt" key and drag smart object from library to canvas.