Photoshop Scripting - Solid Fill or Shape Layer
When I run this code on a "solid fill layer" or a "shape layer" I get the same result
alert(app.activeDocument.activeLayer.kind);Result: LayerKind.SOLIDFILL
I assume that a regular solid fill layer and a shape layer are both "LayerKind.SOLIDFILL" under the hood. However, I need to perform different functions for a solid fill vs a shape layer. Is there a way to detect if the layer is a shape layer?
It appears that a shape layer has two properties that a solid fill layer doesn't have, but I haven't been able to figure out how to test if the properties exist on the layer.
Shape layers have these two extra properties:
pathBounds
AGMStrokeStyleInfo
Any information would be greatly appreciated
