Skip to main content
MidoSemsem
Inspiring
August 31, 2022
Question

A script to smooth lines by angle

  • August 31, 2022
  • 1 reply
  • 1314 views

Hello Community,

 

I have been looking for a way to smooth path lines as quickly and accurately as possible.

I tried to use the Simplify Tool but I didn't get the expected result.

The Smooth Pen Tool was the best solution, but I have many files and shapes like the attached file.

I think that the best result in relation to the original path may be created by a function to calculate the corners' angles and smooth the over 110-degree angles.
Is this really what it looks like in the attached file?
Can anyone build a script to create an array function?

 

Kindly help,

Regards

This topic has been closed for replies.

1 reply

m1b
Community Expert
Community Expert
August 31, 2022

Hi @MidoSemsem, what you are asking is very difficult. Here are some ideas that may help, but might not go all the way:

1. use Effect > Stylize > Round Corners...

2. are you always basically smoothing out that particular "font"? If so, a script might be able to analyze if a path item is a "glyph" in that font and replace it with the smoothed version (or maybe just a proper text frame?!) Interesting project there.

- Mark

MidoSemsem
Inspiring
August 31, 2022

Thanks @m1b,
I tried the Round Corners effect, but the Simplify Tool still provides a better result.
The attached file contains path lines not outlined fonts.

 I hope this will make it easier.

m1b
Community Expert
Community Expert
August 31, 2022

Okay thanks. Yes I know the "font" is just paths. If a script was able to convert those into normal text, would that work, or do you actually need those paths smoothed?