Closed siriusi closed 5 years ago
There is an error: NameError: Name typename not found when I run this code:
NameError: Name typename not found
from comtypes.client import GetActiveObject app = GetActiveObject("Photoshop.Application") srcDoc = app.Open("E:\\Project\\Page_To_Bar\\images\\MangaTest.psd") print("type", app.activeDocument.activeLayer.typename)
I sure layer.typename is aviliable in ADOBE PHOTOSHOP CC 2015 JAVASCRIPT SCRIPTING REFERENCE Can you help me? Thank you.
typename does exist, instead of comtypes.client, try win32com.client then you should be able to get the typename
There is an error:
NameError: Name typename not found
when I run this code:I sure layer.typename is aviliable in ADOBE PHOTOSHOP CC 2015 JAVASCRIPT SCRIPTING REFERENCE Can you help me? Thank you.