Copy link to clipboard
Copied
Hi All.
I'm tring to edit via jsfl the bezier handles, NOT the vertex itself, just the 2 classic handles that every curved bezier has.
In the jsfl documentation the only command about bezier is "moveSelectedBezierPointsBy"
but this just move the vertex and leave the handle in their position
Does anyone know if and how I can edit or "read" the value of the handles?
Many thanks
Luca
Copy link to clipboard
Copied
I am also interested in knowing if it's possible to get Shape object vertices' Bezier Handles from the JSFL API. I've seen documentation on getting the Shapes' vertices and the Controls of Edges, but not the Bezier Handles' coordinates. Does anyone know if it's possible? Thank you!
Copy link to clipboard
Copied
I think, this is the proper method to obtain the coordinates of all control points of the quadratic bezier curve in Flash/Animate:
var pt = shape.edges[0].getControl(0); // 0 to 2
Copy link to clipboard
Copied
Hello,
Thank you very much for the reply. As mentioned in the original message, I am already aware of Controls of Edges. I need to get the Bezier Handles for my Command. Is there a way to derive them from these control points?
Copy link to clipboard
Copied
I'm looking for the X, Y of Handles 1 & 2.
Copy link to clipboard
Copied
I believe Flash/Animate stores all its vector data as quadratic, not cubic curves. So, the only "handle" you can rely on is point 1, as described in my drawing.
Cubic bezier curves that you can see during editing with A toool exists only temporary and after complete the editing, the cubic curve is represented as approximation with one or more quadratic curves.