AppleScript gradient support?

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

2021-04-27 22:45:19

Hello! I have just read the great AppleScript overview, and looking through the AppleScript dictionary for Pixelmator Pro.

I can't find anything about gradients for fill/stroke styles or the Gradient Fill tool. Is this supported?
User avatar

2021-04-28 07:48:45

Hi! Gradient fill isn't directly supported at the moment but if you save the gradient you want as an effect preset (using the Gradient effect in the Fill effects category), you should be able to apply it using the apply effects preset command.