0

I have some trouble importing my animation from Adobe After Effect to Xcode and web.

I have made a character and rigged it with the Duik-plugin. I made the annimation i would like to get into xcode, and rendered it to JSON using bodymovin. I have an image of the animation here:

enter image description here

Then i take the rendered JSON file and import it into my project. I use the Lottie-ios framework (https://github.com/airbnb/lottie-ios). In my viewDidLoad() i use this code to show the animation:

    let animationView = LOTAnimationView(name: "Velkomst")
    animationView.frame = CGRect(x: 0, y: 100, width: 
    self.view.frame.size.width, height: 250)
    view.addsubview(animatedView.contentMode = .scaleAspectFill
    animationView.play()

But as you can see below, the result is pretty... Wierd... enter image description here

I also created a demo file when i rendered the after effect aniation. On the demo-website it is a little closer to the animation. But still not there. enter image description here

Can anyone tell me what i am doing wrong? Cause i cant figure it out :-(

Lasse Bickmann
  • 195
  • 3
  • 14

0 Answers0