Skip to main content
saranr37921948
Known Participant
July 25, 2017
Answered

How to expand Smart Objects in Photoshop Scripts

  • July 25, 2017
  • 2 replies
  • 5025 views

How to expand Smart Objects in Photoshop Scripts

This topic has been closed for replies.
Correct answer c.pfaffenbichler

Have you even searched the web before posting?

Expanding Smart Objects

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.

2 replies

Jarda Bereza
Inspiring
July 27, 2017

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.

JJMack
Community Expert
Community Expert
July 25, 2017

What do you mean by expand? Do you want to open the smart object or change  the smart object layers current transform?

JJMack
saranr37921948
Known Participant
July 26, 2017

examples

JJMack
Community Expert
Community Expert
July 26, 2017

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

JJMack