https://github.com/mechlus/fusionanimator
Get JSON animation data from Blender (2.79+) and use it in Clickteam Fusion games.
https://github.com/mechlus/fusionanimator
animation blender clickteam clickteam-fusion json
Last synced: 3 months ago
JSON representation
Get JSON animation data from Blender (2.79+) and use it in Clickteam Fusion games.
- Host: GitHub
- URL: https://github.com/mechlus/fusionanimator
- Owner: Mechlus
- License: gpl-3.0
- Created: 2024-01-02T22:32:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-05T03:30:31.000Z (over 1 year ago)
- Last Synced: 2025-01-18T03:15:03.441Z (5 months ago)
- Topics: animation, blender, clickteam, clickteam-fusion, json
- Language: Python
- Homepage:
- Size: 374 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:

## 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!_
**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**.