Search found 2 matches

by alonza1
Mon Jul 13, 2020 9:02 pm
Forum: Help Me
Topic: [solved] [Python] How to access Smart Objects?
Replies: 2
Views: 4476

Re: [Python] How to access Smart Objects?

Figured it out. Here is roughly how it works: def AccessSmartObjects(): psApp = comtypes.client.CreateObject('Photoshop.Application', dynamic=True) psDoc = psApp.Application.ActiveDocument smartObjects = [] for layerGrp in psDoc.layerSets: for layer in layerGrp.artLayers: if layer.kind == 17: # 17 m...
by alonza1
Tue Jul 07, 2020 5:35 pm
Forum: Help Me
Topic: [solved] [Python] How to access Smart Objects?
Replies: 2
Views: 4476

[solved] [Python] How to access Smart Objects?

Hi, I am at a disadvantage since I am not proficient in JS. I primarily use Python. Even so, I have successfully opened a PSB file, can read the layer names, figured out how to toggle visibility in the active document as well. My question is how do I access the embedded smart objects? I'm trying to ...