airbnb / lottie-ios

An iOS library to natively render After Effects vector animations
http://airbnb.io/lottie/
Apache License 2.0
25.74k stars 3.74k forks source link

How to add markers in AE #1016

Closed tianrandesign closed 5 years ago

tianrandesign commented 5 years ago

Lottie-iOS Issue

Hello! I'm not quite understanding this part in the documentation:

Using Markers Markers are a way to describe a point in time by a key name. Markers are encoded into animation JSON. By using markers a designer can mark playback points for a developer to use without having to worry about keeping track of animation frames.

So what type of marker it's referring to? I tried the layer marker as said in Adobe's toturial. But it wasn't exported into JSON file.

Which Version of Lottie are you using?

Lottie 3.0

What Platform are you on?

Expected Behavior

image

Actual Behavior

Marker Not Encoded in JSON file

oblogic7 commented 5 years ago

I just went through this as well. Layer markers are not exported, but composition markers are.

Here is how I ended up doing it. I'm an AE noob, so there may be a better way. https://monosnap.com/file/qyCH6SOCr0OGXVEPrMzbNkKeyQzX1L

One other thing I noticed is that it will export new line characters in the marker name if you hit enter like I did in the video. So be careful about that since Lottie won't match that unless it is included.

buba447 commented 5 years ago

@oblogic7 is correct, composition markers are the only markers that are supported.