Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

A script to smooth lines by angle

Participant ,
Aug 31, 2022 Aug 31, 2022

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

TOPICS
Draw and design , Scripting , Tools
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Aug 31, 2022 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 31, 2022 Aug 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.

Path.jpg

 I hope this will make it easier.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2022 Aug 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 31, 2022 Aug 31, 2022

I want to keep them as paths for Laser Die-cut use.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 31, 2022 Aug 31, 2022
quote

If a script was able to convert those into normal text


By @m1b

 

Do you have it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2022 Aug 31, 2022

No, sorry, I don't have such a script. It was just a concept. I was wondering if a script could be written that would analyse the paths, determine which character they constituted, then replace them with paths (saved as symbols, for example) that you had already manually smoothed to your satisfaction. Just an idea. Perhaps someone is willing to take that project on for fun? But it will be challenging I think. I am too busy at the moment to consider it, so my comments are just to try to get ideas down. Or perhaps someone has a better smoothing algorithm than Simplify Path? Anyway, we'll see what answers come in.

- Mark

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 31, 2022 Aug 31, 2022
LATEST

I'll be waiting for someone to accept this challenge 😄
Thanks Mark @m1b for your support.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines