airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
29.85k stars 2.85k forks source link

Slider Expression Control (Number Counter) Exporting Messy #3044

Open laureneh-byte opened 7 months ago

laureneh-byte commented 7 months ago

"All expression controls are supported. You should have no issues linking any of the supported properties to an expression control."

lxrcan commented 4 months ago

Thanks for the file. i took a look in After Effects to test exporting it for myself.

Screenshot 2024-02-10 at 1 01 30 Screenshot 2024-02-10 at 1 01 42

for me the numbers to export correctly when i turned off the glyphs setting and turned on the expression ones as you mentioned.

interestingly the round() expression doesnt seem to work when exported. likely because lottieweb is interpolating in the browser between the baked values saved from AE.

how to fix?

Ditch the expressions for the final output, make a copy and bake the text source on your text layers which will give you hold keyframes. this wont get interpolated (see attached after effects file) you can hide the 'live' text layers incase you need to make changes again in the future.

Screenshot 2024-02-10 at 1 16 08

Sport Mode Troubleshoot_lorcan.aep.zip data.json