photoshop-python-api icon indicating copy to clipboard operation
photoshop-python-api copied to clipboard

document.guides throw expcetion

Open little-wheat opened this issue 2 years ago • 0 comments

code like blow will throw exception app = ps.Application() doc = app.activeDocument app.preferences.rulerUnits = ps.Units.Pixels print(doc.guides)

it will throw Traceback (most recent call last): File "C:\Workshop\PyProject\SpineToPhotoShop\venv\lib\site-packages\photoshop\api_core.py", line 66, in getattribute return super().getattribute(item) AttributeError: 'Document' object has no attribute 'guides'

but i use this code in jsx file it can work

little-wheat avatar Feb 27 '23 10:02 little-wheat