Skip to main content
Participating Frequently
February 21, 2023
Question

Change outline via extendscript

  • February 21, 2023
  • 1 reply
  • 871 views

Hello everyone, I would like to know which method should I use to change to the controlled contour of a path as in the image.

 

 

This topic has been closed for replies.

1 reply

m1b
Community Expert
Community Expert
February 22, 2023

Hi @rdFerrarezzi, do you mean you want to set the stroke alignment to outside? You can't do that directly via a script. Perhaps it can be done using an action or applying a graphic style?

- Mark

Participating Frequently
February 23, 2023

"do you mean you want to set the stroke alignment to outside?", Yes.

Is it possible to create a graphic style via script, if so, how?

m1b
Community Expert
Community Expert
February 23, 2023

I'm not confident that it is possible to create a graphic style via script. Graphic style libraries seem to be just normal .ai files with the graphic styles in them. So you can't make the style(s) ahead of time? That's tricky then. I suggest you ask a new question here on the forum asking something like "How to create a graphic style in ExtendScript?"

 

Also @Kurt Gold would an action work here to set an objects stroke to align with outside?

- Mark