Page 1 of 1
Add point but retain shape
Posted: Mon Dec 07, 2015 11:23 pm
by ernpchan
Is it possible to add a point to a curve without the new point changing the shape of the curve?
Re: Add point but retain shape
Posted: Tue Dec 08, 2015 10:23 am
by jahnocli
Scripts | Draw | Split Curve
Re: Add point but retain shape
Posted: Wed Dec 09, 2015 12:33 am
by ernpchan
Is this the only way? I thought I saw a way to do this with the existing tools in a video but I can't find that video now.
Re: Add point but retain shape
Posted: Wed Dec 09, 2015 11:46 am
by jahnocli
How many ways do you need?
Re: Add point but retain shape
Posted: Wed Dec 09, 2015 9:24 pm
by Greenlaw
Split Curve doesn't really preserve the shape though...all it does is evenly divide the segment between selected points. Running the script with a single point setting between two points is no different from simply adding a point in the middle of the segment using the Add Point tool. The shape is likely to change after running it this way.
And while it's true that if you select all the points in the curve and run the script, the original shape may be more accurately preserved but then of course you haven't added only a single point either.
Unfortunately I have no solution for this myself.
G.
Re: Add point but retain shape
Posted: Thu Dec 10, 2015 12:50 pm
by hayasidist
strictly the answer is no - all you can do is get close (and that's what split curve does as has been said).
techy answer (I think this is right, but please say if not):
(other than all "peaked" points): in AS the actual path between two points is a Bezier curve. The position of the control handles is hidden, and depends on the curvature at the point and the tangent of the path at the point (IOW where the neighbours to the point are). If you change the curvature through a point it will change the path on both sides of the point (i.e. change the path of two segments). If you move a point it will change the tangent at its two neighbours and thus change the path of four segments.
Consider a line with four control points A, B, D, E
Adding a new point (C) on the path between two existing points (between B and D) will change the precise path of the (now) four segments A-B, B-C, C-D and D-E
changing the curvature at C will change paths B-C and C-D
changing the position of C will change all four paths
If the segments are small (i.e. the points are close together) the visible change in paths will be small.
There is a pending enhancement request for a layer type that will support Bezier curves.