Giter Club home page Giter Club logo

u.movin's Introduction

Bringing After Effects shape animations to Unity.

Inspired by the Lottie frameworks, which utilize animation data from After Effects to create animated vector graphics on native platforms.

With the help of Unity's Vector Graphics package, this library brings the same to Unity.

Examples

Ex1

Ex2

Features

Currently supports animation for:

  • Shape paths
  • Shape fill color
  • Shape stroke color
  • Layer anchor points
  • Layer position
  • Layer rotation (X, Y, Z)
  • Layer scale
  • Layer opacity
  • Blending between compositions
  • Single layer precompositions [IN PROGRESS]

Usage

First, use the Bodymovin extension in After Effects to export your composition.

Second, enable Vector Graphics from the Package Manager in Unity.

Third, add the exported json to your Resources folder.

Editor

Add a Movin Renderer component to your GameObject, and point the resourcePath to your json file (located under Resources)

Ex

Script instantiation

Movin mov = new Movin(transform, "json/samurai");
mov.Play();

Pass your GameObject's transform as a parameter, followed by the json path (located under Resources)

Optional parameters

Sort [Int]: Order in layer
Scale [Float]: Scale of rendered composition
Stroke Width [Float]: Width of AE strokes
Loop [Bool]: Should the composition loop
Quality [Float (0.01 - 1.0)]: Quality of the shapes drawn (lower is better)

TODO

  • Concurrent playing composition blending
  • Nested Precomps
  • Masking / Alpha Mattes
  • Parametric shapes
  • Stroke size, width, opacity
  • Fill opacity
  • Time remapping
  • Animating bitmap layers
  • Blend mode support

u.movin's People

Contributors

leetful avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.