Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amandaghassaei/fusion360-scripts

A collection of Fusion360 scripts, mostly for generating animations
https://github.com/amandaghassaei/fusion360-scripts

animation cad fusion-360 fusion-360-api fusion360

Last synced: 3 months ago
JSON representation

A collection of Fusion360 scripts, mostly for generating animations

Awesome Lists containing this project

README

        

# Fusion360 Scripts

This repo contains a number of Fusion360 scripts. More info about each script is given in the README.md inside each folder.

I'm very curious about how these scripts are being used, feel free to share your animations in the [Show and Tell](https://github.com/amandaghassaei/Fusion360-Scripts/discussions/9) discussion thread. Also, pull requests welcome!

## [Design Version Timelapse](Design-Version-Timelapse/)

Turn your Fusion360 design versions (i.e. all your previous saves) into a timelapse animation.

design version animation example

## [Design History Animation](Design-History-Animation/)

Turn your Fusion360 design history timeline into an animation.

design history animation example

## [Spin Animation](Spin-Animation/)

Spin your design and export screenshots.

spin animation example

## [Print Camera State](Print-Camera-State/)

Print the current state of the camera.

camera state parameters

## Installation

Download this repository as ZIP and unzip the folder (put this folder in a place where you won't delete it later):

![Download button](docs/download.png)

In the *Design* workspace, go to the *Tools* tab and select *Add Ins > Scripts and Add-Ins...*:

![Tools Menu](docs/tools.png)

Click the green plus sign next to My Scripts:

![Add Script](docs/addscript.png)

Then Select the folder called e.g. `Design-History-Animation` inside `Fusion360-Scripts/Design-History-Animation`:

![Select Folder](docs/selectfolder.png)

You should now see it added to your scripts. To Run the script, select it and press *Run*:

![Script Added](docs/scriptadded.png)

## Creating an Animation Video

After all the still frames (with the name FILENAME_###.png) are generated, I use [ffmpeg](https://ffmpeg.org/) to compile the stills into an animation. From the terminal run:

```ffmpeg -r 30 -i PATH_TO_FRAMES/FILENAME_%d.png -c:v libx264 -preset slow -crf 22 -pix_fmt yuv420p -an OUTPUT_DIRECTORY/animation.mp4```

`-r 30` sets the framerate to 30 fps
`-c:v libx264 -preset slow -crf 22` encodes as h.264 with better compression settings
`-pix_fmt yuv420p` makes it compatible with the web browser
`-an` creates a video with no audio
You can optionally specify `-s 640x640` to control the output size of the video
If your filename has spaces in it, you can escape them with `-i PATH_TO_FRAMES/filename\ with\ spaces_%d.png`

## Creating an Animated GIF

I upload the resulting video or raw frames to [ezgif](https://ezgif.com/) to create an animated gif. I'm sure many other solutions exist (e.g. Photoshop, Premiere, GIMP, ffmpeg).