How to use scripts in Photoshop to check if a layer is a smart object, and if it is, delete it,
I tried
if (lactiveLayer.kind == “LayerKind.SMARTOBJECT”) {
but it didn’t seem to work
、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、
New contributor
Xiaomu Li is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.