Sub topic 3
Duplicating Smart Objects: Shared Versus Independent Copies
This chapter assumes you know the Layers panel, basic smart object behavior, and the Filter menu.
Shared and independent copies
Duplicating a smart object layer with Ctrl+J (Cmd+J on macOS) creates a shared copy. Both layers point to the same contents, so editing one updates the other. To break that link, select the layer and choose Layer > Smart Objects > New Smart Object via Copy. The new layer then holds its own independent contents.
Replacing contents and building mockups
Choose Layer > Smart Objects > Replace Contents to swap in a new image. The layer keeps its size, rotation, and smart filters. Designers use this to build mockups: place a design in a device screen once, then replace the design for each new version.
Camera Raw Filter as a smart filter
Applying Filter > Camera Raw Filter to a smart object stores it as a smart filter. You can reopen it and adjust the settings later without losing pixel data.
Limits and when to rasterize
Some tools, such as the brush and clone stamp, cannot paint directly on a smart object. Rasterizing converts the layer to ordinary pixels with Layer > Rasterize > Smart Object. This step is permanent for the layer's editable contents, so duplicate the layer first.
Linked files and missing links
A linked smart object reads a file outside the document. If that file moves, Photoshop shows a missing link warning. Use Layer > Smart Objects > Relink to File to point the layer to the new location.
File size and performance
Independent copies each store their own data, which increases file size. Shared copies add little. Large embedded files also slow opening and saving.
Automating with scripts
This ExtendScript converts the selected layer into a smart object:
// Photoshop ExtendScript: convert the active layer to a smart object
executeAction(stringIDToTypeID("newPlacedLayer"), undefined, DialogModes.NO);Workflow best practices
- Use shared copies for repeated elements that should stay identical.
- Use New Smart Object via Copy when a copy needs its own edits.
- Duplicate a layer before rasterizing it.
- Keep linked files in a stable folder to avoid missing links.
Exercise
You duplicate a smart object with Ctrl+J and then edit one copy's contents. What happens to the other copy, and how do you make them independent?
Show answer
The other copy changes too, because both layers share the same contents. Select the layer and choose Layer > Smart Objects > New Smart Object via Copy to give it independent contents.