Skip to content

Latest commit

 

History

History

atlas-lottie

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

tool-atlas-lottie

Transform lottie JSON file to atlas format in galacean engine. This tool will generate a folder which contains three files: a processed lottie JSON file, an atlas file and an image.

Usage in terminal

  1. Install
npm i @galacean/tools-atlas-lottie -g
  1. Use command in terminal

if lottie file has base64 images:

galacean-atlas-lottie -s lottieFile.json

if lottie file has images in a directory:

galacean-atlas-lottie -s lottieFile.json -i ./images

Usage in node project

  1. Install
npm i @galacean/tools-atlas-lottie --save
  1. Call api
const lottieTransform = require("@galacean/tools-atlas-lottie");

lottieTransform("lottieFile.json");