Coder Social home page Coder Social logo

mechlus / fusionanimator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 383 KB

Get JSON animation data from Blender (2.79+) and use it in Clickteam Fusion games.

License: GNU General Public License v3.0

Python 100.00%
animation blender clickteam clickteam-fusion json

fusionanimator's Introduction

FusionAnimator

Purpose

If you have ever wanted to make more stylish animations for your objects in your Clickteam Fusion 2.5+ applications then this tool will be of use to you. Using Blender version 2.79 and above, FusionAnimator + its bundled python script(s) can put animation data right into your games easily.

The included python scripts create json data of a selected Blender object that can be used to transform objects in Clickteam Fusion using the provided FusionAnimated Object.

How to Setup

  1. Own Clickteam Fusion 2.5+
  2. Download the required extensions:
    • JSON Object
    • File
    • File Read / Write If you are missing these extensions then search them by name in the extension manager (View > Extension Manager)
  3. Copy the bundle of objects from the example .mfa file (FusionAnimated Object, JSON Object, File, File Read / Write) to your desired application.
  4. Done!

Your group of objects should look like this:

Bundle

Use

To use FusionAnimator:

  1. Create a FusionAnimated object in your frame once its contents and required objects are in the same frame.
    • The FusionAnimated Object active is not created by default.
  2. Set the .json file path in its jsonPath alterable String field.
  3. Set ease speed, animation speed, on-end event and position multiplier.
    • The on-end event string fires a timer event immediately when the animation is over (and it is not looping) with the name entered in said alterable string.
    • If you would like to reference specific FusionAnimated Objects then you can enter a unique ID in the alterable value myID and/or the alterable string strID.
    • Certain animation properties, like making an animation loop, are in the animation's .json.
  4. Done! It's best to not modify the FusionAnimated Object active unless you know what you're doing!

Example

NOTE: If you want to reuse the same object but you want to change the animation, simply set the perform flag to FALSE (0) and repeat steps 2 & 3. If perform is not turned off then the object may run into issues!

There is a simple use case in the .mfa file provided in the repository that the object is stored in. You can ignore that as all of the necessary code is in the behavior of the FusionAnimated Object active.

fusionanimator's People

Contributors

mechlus avatar

Watchers

 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.