Because of the way we've approached layer styles and color adjustments in our AppleScript support, it isn't possible to do this. Just out of interest, is this to make exported SVGs cleaner or for some other reason?2020-09-26 12:34:53 Thank you for adding AppleScript support in Pixelmator Pro!
Is there a way to turn fill off completely for a shape layer? I have a shape that only needs a stroke, not a fill.
I have been able to set 'fill opacity' to 0, but would really like to do the equivalent of unchecking the Fill checkbox in the interface.
Thank you!
You should set the position of the layer after pasting it — that's probably the most basic way to achieve this. If you find yourself doing this often and would like your scripts to look cleaner, you could also create a handler for it. Something like this should work (you'd put this at the end of your script after all your application tells, etc.):
using terms from application "Pixelmator Pro"
on pasteAtPosition(myLayer, myPosition)
duplicate myLayer
set position of myLayer to myPosition
end pasteAtPosition
end using terms from
Then, in your application tells, whenever you want to copy and paste at a specific position, here's how you would call the handler:my pasteAtPosition(layer 3, {0, 0})