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

JSFL setCustomEase doesn't work

New Here ,
Aug 11, 2017 Aug 11, 2017

Copy link to clipboard

Copied

Actually it's 'kind of work', but not the way I wanted to. This is the result of setting custom easing:

e1.JPG

Does it looks like there is no easing at all, right? Yes and no.

"Yes", there is no visual confirmation that animation has any easing, the object is moving with linear easing.

"No", if you open easing editor...

e2.JPG

Yep, easing is there. When you press play button, it works. Once published - linear as usual.

What should I do to make Animate apply my custom easing???

Views

292

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

correct answers 1 Correct answer

Contributor , Aug 11, 2017 Aug 11, 2017

So you have written a JSFL script that changes the easing for the selected frames?

Have you made sure to set hasCustomEase to true, for the frames?

Votes

Translate

Translate
Contributor ,
Aug 11, 2017 Aug 11, 2017

Copy link to clipboard

Copied

So you have written a JSFL script that changes the easing for the selected frames?

Have you made sure to set hasCustomEase to true, for the frames?

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
New Here ,
Aug 11, 2017 Aug 11, 2017

Copy link to clipboard

Copied

LATEST

Omg, I'm totally forgot about this param!

Yep, now it works!

For people like me, the right way to apply custom easing:

Step 1:

timeline.layers[0].frames[0].hasCustomEase = true;

Step 2:

timeline.layers[0].frames[0].setCustomEase("all", [easing]);

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