leetful / u.movin Goto Github PK
View Code? Open in Web Editor NEWUnity library for rendering After Effects shape animations
License: MIT License
Unity library for rendering After Effects shape animations
License: MIT License
Hey thanks for the plugin! Great work!
Currently I experimenting with the Telegram stickers. I want to bring them to Unity.
I managed to unzip the tgs sticker to a json file. Which is in bodymovin format. I also managed to import it using bodymovin into Adobe After Effects. The animation shows properly.
If I try to import directly the unzipped telegram sticker into Unity, there are a lot of errors in the Json parsing code.
If I export the animation from Adobe After Effects using the bodymovin extention and check the "Export old json format" in the Advanced export settings then the animation successfully imports into Unity. But it looks broken.
You can see it here:
https://user-images.githubusercontent.com/5675979/102898521-ed64e780-4469-11eb-8de1-b696e2c2fb24.mp4
If I use the same json file in lottie, it looks good. You can see it here:
https://lottiefiles.com/share/mxxbrw3e
Here is the link to the json file:
https://drive.google.com/file/d/1tLzZ9lhQEAKlvwC_BhDAVhe-AC5zrlPn/view?usp=sharing
Unity version: 2019.3.12f1
After Effect version: 17.5.1 (Build 47)
Bodymovin version: 5.7.5
Do you have any ideas how to fix it? Please help!
Hi, is it advisable to use Movin in UI? I managed to use it with UI while experimenting, but it only works with Screen Space Camera canvas. I'm still unsure if it's a good idea for production since the animation itself uses meshes and regular transforms rather than rect transforms and that might mess with UI
I updated to Unity 2020. It could be me, but I'm having a hard time getting this to work in the latest version with the new package management system. I've got vector graphics installed, body movin on After Effects installed, but getting the u.movin modules in package manager from both disk and git aren't working anymore. This is a great tool for workflows, I wish it still worked!
Hey
I'm having a hard time importing animations exported from AE / Bodymovin into Unity. I can view the animations on the lottiefiles webpage, so the files must be ok.
I've attached one of the animations, maybe you can see what's wrong with it?
{"v":"5.5.2","fr":60,"ip":0,"op":60,"w":600,"h":600,"nm":"start_sprite","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[301,302,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[500,500],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":100,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-1,-2],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[301,302,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":1,"k":[{"i":{"x":[0.4,0.4],"y":[1,1]},"o":{"x":[0.2,0.2],"y":[0,0]},"t":0,"s":[500,500]},{"t":59,"s":[0,0]}],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":100,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-1,-2],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":60,"st":0,"bm":0}],"markers":[]}
please dowload following lottiefile and testing:
https://lottiefiles.com/7512-blue-heart
ERROR:
NO CONTENT LAYERS, ABORT! <<<<
UnityEngine.Debug:Log(Object)
Movin:MovinInit(String, Int32, Single, Single, Boolean, Single) (at Assets/U.movin/Movin.cs:102)
Movin:.ctor(Transform, String, Int32, Single, Single, Boolean, Single) (at Assets/U.movin/Movin.cs:77)
MovinRenderer:RenderMovin() (at Assets/U.movin/MovinRenderer.cs:44)
MovinRenderer:Update() (at Assets/U.movin/MovinRenderer.cs:55)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.