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

Prevent Offset Trimmed Path Stroke from Returning on the Other Side

Contributor ,
Jun 14, 2021 Jun 14, 2021

Copy link to clipboard

Copied

When Trimming a shape path, how do I prevent the Offset from looping back around to the other end of an open path?   It's behaving like a wormhole portal - out one end and back in the beginning...  I just want it to leave.

 

Thanks

 

Marc

TOPICS
How to

Views

110

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
LEGEND ,
Jun 15, 2021 Jun 15, 2021

Copy link to clipboard

Copied

LATEST

You could always simply limit the range of your input sliders by tying Offset and the start/ end together with some simple linear() expression, i.e. if the offset exceeds a certain range, the end or start compensates. Pseudo-code to be applied to the end or start property:

 

linear(offset,0,100,20,100);

 

Figuring out the exact values would take some experimentation, though. Unfortunately there is no simple way to derive the exact path length in pixels (unless one were to re-create the entire Bézier formula in the expression) to facilitate those calculations.

 

Mylenium

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