GithubHelp home page GithubHelp logo

isabella232 / intern-ae-to-f1-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jam3/intern-ae-to-f1-exporter

0.0 0.0 0.0 127 KB

This is an After Effects to F1 exporter

License: MIT License

JavaScript 100.00%

intern-ae-to-f1-exporter's Introduction

ae-to-f1-exporter

experimental

This is an After Effects to f1 exporter. There is a companion module ae-to-f1 which is used on the frontend and contains all logic that will be shared by all exported After Effects f1 instances.

In other words the workflow for the exporter will be to export the After Effects component and then in the project install ae-to-f1.

When using this exporter it's a two step process where you first run ae-to-json after which you can run this exporter on the exporter JSON file.

Important

This project is no longer maintained by Jam3 and was archived. If you want to unarchive it and contribute, please contact [email protected]

Usage

NPM

Usage CLI

Install globally:

$ npm i ae-to-f1-exporter -g

Also install ae-to-json-cli globally:

$ npm i ae-to-json-cli -g

With After Effects open on the projec you'd like to export do the following commands:

$ ae-to-json > output.json

This JSON file will be used by the ae-to-f1 exporter by running the following:

$ ae-to-f1 output.json example-ui f1-dom

Usage API

When using this exporter you should use one of the "flavours" of f1 by using one of the following

require('ae-to-f1-exporter/exporters/react-f1')
require('ae-to-f1-exporter/exporters/f1-dom')

The following in example of how to use the exporter for f1-dom and the process for other flavours of f1 exporters will be exactly the same:

var exporterF1Dom = require('../../exporters/react-f1');

exporterF1Dom({
  pathJSON: './ae-to-json-export.json',
  pathOut: './out_put/'
});

In the above example pathJSON would be a JSON file which is exported from After Effects using the ae-to-json module. pathOut should be a path to a folder your files will be exported to.

Three files will be exported to the pathOut folder:

  1. index.js - This file is where the main logic of the exported ui exists. The contents of this file will be depedent on which platform you're targetting. For f1-dom this module would export a function which will return a f1 instance. For react-f1 a react-f1 component will be returned.
  2. animation.json - This file contains parsed animation data from the ae-to-json exported file. animation.json will be the exact same on each platform. This json file is structured in a way where each UI "static/non-animated" and "animated" properties are split so that it's easier for developers to potentially manually by hand modify animation propertes.
  3. targets.json - is a meta-data file which contains information about the items being animated such as image sizes and file names.

Testing

This exporter includes two "flavours" of f1. To run tests for the different flavours use the following commands:

react-f1:

$ npm run test-react-f1

f1-dom:

$ npm run test-f1-dom

These two tests will generate/export ui components that will run at the address http://localhost:8000

The generated test files will exist in:

f1-dom:

test/
-- f1-dom/
---- test-f1-dom/

and for react-f1:

test/
-- react-f1/
---- test-react-f1/

License

MIT, see LICENSE.md for details.

intern-ae-to-f1-exporter's People

Contributors

iranreyes avatar mikkoh avatar nascherman 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.