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

Jsfl edit bezier handle

Community Beginner ,
Jul 08, 2016 Jul 08, 2016

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

TOPICS
Exchange extensions

Views

958

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
Participant ,
May 08, 2023 May 08, 2023

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!

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 ,
May 09, 2023 May 09, 2023

Copy link to clipboard

Copied

VladinMMitov_0-1683618020571.png

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

 

 

- Vlad: UX and graphic design, Flash user since 1998
Member of Flanimate Power Tools team - extensions for character animation

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
Participant ,
May 09, 2023 May 09, 2023

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?

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
Participant ,
May 09, 2023 May 09, 2023

Copy link to clipboard

Copied

Bezier_Handles.gif

I'm looking for the X, Y of Handles 1 & 2.

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 ,
May 10, 2023 May 10, 2023

Copy link to clipboard

Copied

LATEST

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.

 

 

- Vlad: UX and graphic design, Flash user since 1998
Member of Flanimate Power Tools team - extensions for character animation

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