Lottie Animation JSON not Loading, HISE Crashes
-
I have prepared a simple Lottie animation. But when I am trying to load it in HISE, it keep crashing. Here is the file (JSON).
-
@DabDab Where does this JSON come from? There are 1.8 million characters in it
-
@ustk From After effects and Lottie Files
-
@ustk said in Lottie Animation JSON not Loading, HISE Crashes:
There are 1.8 million characters in it
I think that's the reason of the crash :) It took 3 seconds to load just for the preview the code in Safari. That JSON code should be much lighter, so maybe this animation is too complex for this.
-
@DabDab also it seems that you have used blur, hise is not able to convert lottie blur into a layer. I made the experience that lotties work best which are made without any effects that do not apply to opacity or shape. Gradients and morphing is no problem. Also particles are possible if the spheres have a low amount of splines. Be aware tho that HISE will convert the lottie which does loose some features that may be available in after effects.
-
@Straticah Nope ! even lottie files doesn't support such effects. so I didn't use any blur to produce animation (directly). What I did was, I rendered all frames( all effects) as image sequences and then imported it back to AE. Then I made lottie files.
-
Now this lottie is not loading in HISE.
const lottie = "2101.nT6K8CF5rzUP.nDSvzfJvyJtMvxHktrF1CP8n0Jt0.PsL79y.d4Uf2PwthHhHVT39nqwYfmAdoDAgC.1.rK.EP.VRkjmiCpHmmDFTfbHmbRupPMqyFd22ELjjdqHJdOWbjHAM4rTwnqTxbTHLlF0lGWXQIEXU3.UQjzRwnQNWn.xAD3WZYhTzCFNTVJlIHS45L21u9sy4P8UMVOKOQjbnfw6AEFTlTwggUEQbnLfFnHGp3H4AYfkpw5ohyBlXkwSZBkUFVff7P0XI8djjbjPhmHXwyBnGrTMVUrHYoXzrUMVSvAoZrtLYoXXqpwJZhkhYJxShJVpFKmkhYwTLQlZAAnjdnLggmIuGjikpwhhUFpFKm2SkkhY8Xi8R0XcwJi.LuSManyadzo4EY6aeQMWFxz1CHmsLghb71UHjK3D7tz4ojHd5UMKHN8SjWzyEnHGjdrH5I4n.IGIoigLsQw7MG8Oy2g8hNaWAXAFrvATIf.HvAATK3X.PzPABPutGJTXw4E4gA5kUjnIWC6N6RFae2ULSSXpcad7TLdqRrcWHLTjBSVYjqjAgGKNTbPUL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ObXK.sbI8wqQuZfy4ho+ZR5QASUOzParQd23aY4cyj6i+k.Ecnu6YoZ1c.6TmNleXIyL8QAgh8J7qYNuvXlTlMO."; const var Panel1 = Content.getComponent("Panel1"); Panel1.setAnimation(lottie);
-
@DabDab the animation data says:
"active": false, "currentFrame": 0, "numFrames": 0, "frameRate": 0.0
I don't think it was converted properly.
-
@Dan-Korneff I will make a screen rec shortly. Correct me please what I am doing wrong.
-
@DabDab said in Lottie Animation JSON not Loading, HISE Crashes:
What I did was, I rendered all frames( all effects) as image sequences and then imported it back to AE. Then I made lottie files.
Lottie files are vector based. I am not sure the image to lottie will work in Hise.
With After Effects, it works here but all of the layers are paths (shapes), not images.