question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support separated x and y values for points

See original GitHub issue

Currently, 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:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
gpealcommented, Feb 10, 2017

@madsbf @pdenise708 1.0.2 is now live. Can you try split dimensions?

0reactions
madsbfcommented, Feb 13, 2017

I have verified this is working with 1.0.2 @gpeal ! Thanks for the swift response 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Coordinate system and ordered pairs - Math Planet
An ordered pair contains the coordinates of one point in the coordinate system. A point is named by its ordered pair of the...
Read more >
Functions: Domain, domain on the range... | Purplemath
The domain of a relation (and thus also a function) is the set of allowable inputs; it is all the x-values in the...
Read more >
How To Plot X Vs Y Data Points In Excel | Excelchat - Got It AI
Click to learn how to use Excel to draw X and Y Plots called scatter points used to display values for two variables....
Read more >
Increasing, decreasing, positive or negative intervals (video)
Function values can be positive or negative, and they can increase or decrease ... I hope to do in this video is look...
Read more >
Select data for a chart - Microsoft Support
In columns, placing your x values in the first column and your y values in the ... of the bubbles it shows, to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found