tool-atlas-lottie
Transform lottie JSON file to atlas format in oasis 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
- Install
npm i @oasis-engine-tools/atlas-lottie -g
- Use command in terminal
if lottie file has base64 images:
oasis-atlas-lottie -s lottieFile.json
if lottie file has images in a directory:
oasis-atlas-lottie -s lottieFile.json -i ./images
Usage in node project
- Install
npm i @oasis-engine-tools/atlas-lottie --save
- Call api
const lottieTransform = require("@oasis-engine-tools/atlas-lottie");
lottieTransform("lottieFile.json");