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

Parallel path

Engaged ,
Jun 13, 2019 Jun 13, 2019

Copy link to clipboard

Copied

Does anyone know script that would make parallel path. Like offset path, but without closed loop. ?

TOPICS
Scripting

Views

487

Translate

Translate

Report

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 ,
Jun 13, 2019 Jun 13, 2019

Copy link to clipboard

Copied

what kind of lines? straight, it might be possible. Curved lines, probably not that easily.

Votes

Translate

Translate

Report

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 ,
Jun 13, 2019 Jun 13, 2019

Copy link to clipboard

Copied

Sorontar​,

please show something - maybe the expected result.

Votes

Translate

Translate

Report

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 17, 2019 Jun 17, 2019

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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
Explorer ,
Jun 18, 2019 Jun 18, 2019

Copy link to clipboard

Copied

LATEST

I don't have time to write this, but i'm sure this will work for any a single open path.

  • Deselect all
  • Duplicate the path.
  • Give it a stroke of say 10 points, No end caps
  • Set the path as selected
  • Menu Command > Outline Stroke
  • Get the newly closed path shape from document.selection
  • Given the two end points x1,y1 and x2,y2 from the ORIGIONAL path, test all nodes in the outline stroke path, and find 2 consecutive points which both are within 5.1 points of x1,y1 (10/2 + a fudge factor) and remove this line. The only match should be the two straight lines at the end as only their nodes with be within the red circle below.
  • Repeat for multiple outlines
  • outline.png

Votes

Translate

Translate

Report

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