[APPLESCRIPT] Access ALL styles of a Text Layer

Talk about Pixelmator Pro, share tips & tricks, tutorials, and other resources.
User avatar

2023-07-23 15:48:34

Pixelmator Pro 3.3.8 - Ventura 13.4.1 on an M1 Macbook Pro

I've got a Text Layer to which I've added eighty (80) drop shadows. All 80 have the same Shadow Angle. I want to be able to change the Shadow Angle of all 80 drop shadows simultaneously to test out different looks.

I couldn't figure out how to do this in the GUI, so I figured I'd try AppleScript. The 'styles' object returned by Pixelmator Pro doesn't appear to accommodate layers with multiple instances of any individual style type. All of the style parameters are individual properties. This seems like a bug to me.

Has anyone else tried AppleScripting multiple instances of individual style types attached to a layer?