Support separated x and y values for points
See original GitHub issueCurrently, Lottie searches for “k” as a direct child of “p”. However, in some cases, After Effects animations will have separated keyframes for x and y, resulting in a structure like this:
"p": {
"x": {
"k": {
}
}
"y": {
"k": {
}
}
}
LottieComposition will throw an IllegalArgumentException with the message “Point values have no keyframes”, when trying to load the above JSON.
It would be nice if Lottie could support this structure as it seems to be a common approach to use. Fixing this will also require changes further down the chain, as JsonUtils.pointFromJsonArray will throw an exception as well as it expects at least two values, but the point may now be 1-dimensional and therefore only contain one value.
Let me know, what your thoughts on this are - I might try to fix this myself, but won’t waste time on it, if you are already aware of this limitation and are already working on it f.x…
Issue Analytics
- State:
- Created 7 years ago
- Comments:9

Top Related StackOverflow Question
@madsbf @pdenise708 1.0.2 is now live. Can you try split dimensions?
I have verified this is working with 1.0.2 @gpeal ! Thanks for the swift response 👍