loonghao / photoshop-python-api

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

refactor(artLayers,layerSets): Dictionary key access for LayerSets #248

Closed Investigamer closed 1 year ago

Investigamer commented 1 year ago

__getitem__ already behaved like dictionary access when called on ArtLayers, but now it will behave the same for LayerSets. This is preferred since this is the standard Photoshop API behavior, and in terms of execution time it is usually much faster than getByName.

Additional changes:

loonghao commented 1 year ago

@MrTeferi Awesome thanks!