Skip to main content
Participant
November 4, 2022
Question

Create duplicate pathItem with offset

  • November 4, 2022
  • 3 replies
  • 208 views

Hello,
I'm new to illustrator scripting though I am familiar with JS.
I'm trying to offset all pathItems in a specific layer with a loop and some help from this post:


https://community.adobe.com/t5/illustrator-discussions/illustrator-javascript-count-area-with-offset/m-p/11564739#M250594

 

The post from Carlos helpt alot (Thanks) but I was wondering if it is at all posible to skipp the app.redraw() part since I would like to run the program on multiple pathItems and it is really slow.

Thanks in advance!

This topic has been closed for replies.

3 replies

Participant
November 7, 2022

I really thought i had tried this. Apperently not, cause it works like a charm. Thanks a lot for your answers!

CarlosCanto
Community Expert
Community Expert
November 4, 2022

give it a try, delete the line and see if it works

Mylenium
Legend
November 4, 2022

Should not be a problem. Just move the redraw into an outer loop and the other functions into an inner with another set of {}.

 

Mylenium