photoshop-cs5

How to identify clipping masks in Photoshop using JavaScript

江枫思渺然 提交于 2019-12-11 20:37:13
问题 I've currently butchered a script I was reading that loops through a list of layers, and then looks for layers with a certain name (3/2, 4/3 etc). The next step is to check for layer masks that are clipped to the base layer, and merge them to it. I've read through the reference docs, and can't find anything about identifying clipping masks. I've attached an image as an example of how the document is structured. And here is the code I have so far: var doc = app.activeDocument var ratios = ["1

Python comtypes Photoshop 64-bits

*爱你&永不变心* 提交于 2019-12-11 02:53:35
问题 I have been using the comtypes module for Python to automate Photoshop CS5, but I am getting a TypeError when I try to execute commands on Photoshop 64-bit. These same commands have been working fine on Photoshop 32-bit. This an example of the code I am using: from comtypes.client import CreateObject psApp = CreateObject("Photoshop.Application") #Create a new document- this is where it bombs out! psApp.Documents.Add(1024, 1024, 72, 'new_source_texture', 2, 1, 1) And this is the Traceback I