photoshop-python-api
photoshop-python-api copied to clipboard
document.guides throw expcetion
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