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

Remove possible points only after simplify.............

Engaged ,
Jun 05, 2017 Jun 05, 2017

Hello Friends,

I have java script code for reducing the points of DXF or AI in illustrator.

After applying once this script it's removing the points from the artworks.

But when I am using repeatedly  this script on artwork then it ruin the shapes of artwork.

Is there any way to stop reducing points after minimum possible points.

I have an artwork's shape like this

after repeatedly applying script , it ruins

Is there any way to stop this ruins.

Please assist me.

Regards

Kundan

TOPICS
Scripting
393
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
Enthusiast ,
Jun 06, 2017 Jun 06, 2017

I don't know why you need to run the script repeatedly but not once?

One possible way is to log the pathItem's length, compare it at the end of the code, if the length changed(bigger than tolerance value), it means you should stop reducing points.

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
People's Champ ,
Jun 07, 2017 Jun 07, 2017

Your number of points doesn't seem crazy neither.

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
Engaged ,
Jun 07, 2017 Jun 07, 2017
LATEST

Thanks for reply moluapple,

Yes , you are correct I should not apply script repeatedly , but it's it's clients requirement.

Regards

Kundan

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