lottie-api icon indicating copy to clipboard operation
lottie-api copied to clipboard

Opacity not working

Open felippenardi opened this issue 6 years ago • 8 comments

I'm trying to target Opacity and it won't work. Neither does with Shape Layers and Null Objects.

Can you try targeting the Opacity and confirm it is not working?

felippenardi avatar Jul 21 '18 15:07 felippenardi

Can you share your implementation?

bodymovin avatar Jul 21 '18 15:07 bodymovin

@bodymovin Thanks for replying so fast!

This is the implementation:

Starting the animation using react-lottie: https://github.com/felippenardi/lottie-face-control/blob/master/src/App.js#L27

Using lottie-api to modify properties: https://github.com/felippenardi/lottie-face-control/blob/master/src/utils/LottieWithAnimationControl.js#L11

Note that the controlling the position of JoyStkCtrl01 works, and modifying the scale of the Cursor (not in the code) does also works. But when it comes to Opacity, the addValueCallback is never triggered.

Here is my after effects: screen shot 2018-07-21 at 16 29 47

Here is a live preview of the above repo: https://lottie-face-control-okfpwprnjr.now.sh/

felippenardi avatar Jul 21 '18 19:07 felippenardi

Hi, it should be fixed now.

bodymovin avatar Jul 24 '18 00:07 bodymovin

You are the best!

felippenardi avatar Jul 24 '18 14:07 felippenardi

@bodymovin I tried to fix it myself, but I was replacing po for ks, which was the property my Json was holding the opacity. How did you get to o?

felippenardi avatar Jul 24 '18 14:07 felippenardi

I also develop the player, so I knew the name of the property :)

bodymovin avatar Jul 27 '18 00:07 bodymovin

Just curious on why opacity was named "ks" inside my json

felippenardi avatar Jul 27 '18 19:07 felippenardi

it shouldn't. ks is a group of properties including opacity and transforming properties

bodymovin avatar Jul 27 '18 19:07 bodymovin