loonghao / photoshop-python-api

Python API for Photoshop.
https://loonghao.github.io/photoshop-python-api/
MIT License
625 stars 71 forks source link

how to check item of layers is actual ArtLayer or LayerSet #233

Closed little-wheat closed 1 year ago

little-wheat commented 1 year ago

like below for l in docRef.layers:

check if l is ArtLayer or LayerSet

I want to traverse all layers(include ArtLayer and LayerSet) with order, so i want to check layer type. Or has any other idea to traverse all layers with order?