I have a shape layer with a stroke (currently applied using a layer effect), and I would like to convert that to a shape layer that has two components, the shape and the stroke, both represented by paths.
My motivation for this is wanting to be able to resize my shape using free transform, and have the stroke resize with it, as if the stroke really is part of that shape.
At the moment the stroke thickness holds constant while I resize the shape, so that when I make the shape smaller, the stroke becomes relatively large and out of proportion.
- Control+click the layer’s icon (for the layer that you want to stroke) in the layer palette in order to select the entire layer.
- Create a new layer.
- Fill the new layer with white, black, or any color that you want.
- Set the new layer’s “Fill” to 0% in the layer palette.
- Double-click the new layer’s icon in the layer palette (or select it and click “FX” at the bottom of the layer palette) in order to bring up the effects window.
- At the bottom, you will see “Stroke.” Set it up how you want the stroke to look like. Alternatively, you could use an outer glow with some fancy properties to give you more control over the appearance of the stroke. Click “OK” to apply the stroke/glow.
- Select both layers and convert them to a “Smart Object” by running the following menu: Layer->Smart Objects->Convert to Smart Objects.
The stroke will now resize with the object, and since it is a smart object, you’ll be able to edit its contents should you feel the need to change the color of the stroke, etc.
Source : Link , Question Author : Paul Calcraft , Answer Author : Michael