airbnb / lottie-web

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

Lottie Does not work with the Adjustment layer? #829

Closed euppi98 closed 6 years ago

euppi98 commented 6 years ago

screen shot 2018-01-18 at 12 48 02 screen shot 2018-01-18 at 12 47 14

jamesdeantv commented 6 years ago

Lottie doesn't work with adjustment layers. You will need to add the adjustments to the individual layers.

euppi98 commented 6 years ago

Thank you)

num3ric commented 4 years ago

Is the exporter extension source code available somewhere to allow users to make such additions (adjustment layer support)?

bodymovin commented 4 years ago

@num3ric here is the code. https://github.com/bodymovin/bodymovin-extension Adjustment layers are now being exported but as null layers for now. How are you thinking of using them?

num3ric commented 4 years ago

@bodymovin Ah wonderful, I'll have look!

We're writing our own importer and renderer in OpenGL/C++, so far so good! The goal would be to support a few adjustment layer effects. Currently, I'm converting layers below an adjustment layer into a precomp, which I believe yields the same result and is supported by the exporter (v5.6.5). However, exporting the adjustment layer as a bare layer object with an effects array would be sufficient for our needs. This would minimize disruptions to our designers' workflow.

num3ric commented 4 years ago

@bodymovin I see that this was already changed in v5.6.6. I will simply update to the latest, thanks!

bodymovin commented 4 years ago

@num3ric It was, but you won't be able to identify if it is an adjustment layer or a null layer. Would that be enough for you? If not, for now you can name the layer somehow.

lfireflyl commented 2 years ago

Hi, i add the adjustments to the individual layers, but after render I don't see any changes, whats problems could be?