Skip to main content
Known Participant
September 5, 2021
Question

Is that possible to Convert Normal Layer to Shape Layer in Script

  • September 5, 2021
  • 3 replies
  • 10519 views

I have 55Layers in template, I want to convert Shape Layer to all ?

Give me some idea ??

Thanks in advance !

This topic has been closed for replies.

3 replies

Bojan Živković11378569
Community Expert
Community Expert
September 6, 2021

Only by using tricks and if that tricks works well. Workaround is to select content of layer in your case then to convert to path and finally to fill path with solid color what should create Shape layer. You can then delete original pixel based layer. You can record action but ... Action will depend on number of layers and their order in the Layers panel. If you always have same situation like bottom most layer is always in question then you can solve problem by recording action, otherwise you may need script.

JJMack
Community Expert
Community Expert
September 5, 2021

If you mean a raster image layer into a shape layer the answer is no.  Shape layer are fill layer the have a vector layer mask.  The Fill  Layer is either Empty, A Solid Color, A  Gradient or Pattern fill layer.    Raster image layer can be  Mask  with A Vector Layer  Mask, with a Normal Raster Layer Mask.   Its like a Shape layer the Image is still a raster image it not vectorized. It still a Raster layer the has been masked.   

 

In Templates Image  that are replaced  are normally made into Smart Object Layers where  the smart object layer's Object Transform is used to Position, Scale and Warp the image for its use in the mockup template. These Smart Object layer in mockup template can also have un-linked Layer mask that hide un-wanted image area in the template.   

 

 A  template may  have Shape layers that are user as clipping Mask where a image layer are clipped to the shape layers to confine the images to shapes  in  some location over the Canvas. 

JJMack
Michael Bullo
Community Expert
Community Expert
September 5, 2021

Are you trying to convert normal pixel based layers into shape layers? If so, is each pixel based shape on its own layer or do layers contain multiple elements? Any chance you could post some screen shots?

MXKSAuthor
Known Participant
September 5, 2021

In this pic, I have taken two layers and convert to shape layer