Is there a way to shrink a curved path (with two open ends) down by a specific length in Adobe Illustrator?
I searched for hours now and still can't find a solution. Do you know any way to do it?
Yes, it is possible. What you do is you use the stroke palette with a dashed array with following properties:
You can then copy the curve and expand this curve and use it for reference for a cut if you need the actual curve shorter. You can also use art brushes for same thing, such as when you hit the upper limit of the dash.
Straight or curved?
For straight paths, just enter a new W
or H
value in the Control bar field or Transform Panel with the path selected.
Curved paths are another matter entirely.
Is there a way to shrink a curved path (with two open ends) down by a specific length in Adobe Illustrator?
Yes there is a way... but it is not native to Illustrator.
The answer lies in using PathScribe, found within the VectorScribe plugin from Astute Graphics. While this plugin is not free, you can try it out during a free trial period.
One of the tools included with PathScribe is the Extend Path tool. This tool (despite its moniker) can also trim paths as well.
Here I have an open curved path which is 1410px in length:
Assuming you've already installed VectorScribe, click and hold on the PathScribe button, which gives you access to the Extend Path Tool:
You'll likely want to constrain your trim to count to full pixels rather than decimal fractions. To do so make sure your Keyboard Increment (found under Edit > Preferences > General) is set to 1px:
Then (with the Extend Path Tool selected) hit the Enter key to go into the Extend Path Preferences... Now check 'Constrain Length by Multiples' and under that check 'Constrain Change in Length':
With your path active, hover over the end of the path and you'll see an annotation appear, then just click and drag:
You can see from the Info Panel that we have now decreased the total length of our curved path by exactly 40px. Simple!
If the path is only slightly curved towards the end, and nobodies' life depends on it, you can of course draw a circle at the end of the path:
Draw the circle using cmd + shift while dragging and make sure its' center has snapped to the last node of the path. Enter the amount you want to trim as the W and H value of the circle.
Then, select the path and use the scissors tool ( C ) to cut the path where it intersects the circle. (Illustrator will 'snap' the tool to the intersection if you have 'smart guides' enabled.)
Disclaimer: this is reasonably precise. But not exact. So, it might not answer the question well enough. But maybe, it's still useful for others.