A script to turn your Fusion360 design history timeline into an animation. When run, this script rolls your design history timeline back to the beginning and saves out screenshots as it steps through each operation in your design. For many operations (e.g. Extrudes, Revolves), it create a smooth animation by interpolating across a range of values.
This script can be configured to save at any image resolution! You can optionally add spin to the animation and change various other parameters via a small panel:
See instructions in the parent README.
A few notes on use:
- The script uses the current position of the camera in the design for the starting frame. It will do a fitToView() call before it starts to set the zoom, but the angle does not change.
- Save .obj Files saves a sequence of .obj mesh files that can be used for further renderings.
- Timeline Range sets the start and end position in the timeline that you would like to animate. By default start is set to 1 and end is set to the current timeline position in the design. Note that not all operations are animated (e.g. Sketch, Combine, ConstructionPlane).
- The rotation is about the y-axis (this is "up" by Fusion's convention).
- Num Final Frames adds several frames to the end of the animation, once the script has reached the end of the selected timeline range to animate.
I'm hoping the rest of the parameters in the panel are self-explanatory.
See instructions in the parent README.
Pull requests welcome! This is a quick script I wrote for myself, and while it does a decent job at animating the most common Fusion360 operations, there is room for improvement. Some of this is due to time constraints on my end, others may be limitations of the Fusion API. Some examples of features I'd like to add:
- Animating Extrude with Extent "To Object" or "All": Since I'm not able to get a distance parameter from this operation, it is difficult to animate. For now, if the extrude operation creates a new body or component, I have it set to fade that component in.
- Move: This operation is throwing an error in the current implementation and is ignored completely. See TODO comment in code for more details.
- FilletFeature / ChamferFeature / OffsetFacesFeature: I'm unable to figure out how to extract the extent parameter for these operations. Bug report here.
- More robust handling of Joints: Currently this code assumes that when users add a new component to an assembly, they immediately add a joint to it and move into into the correct position. Because of this, the code ignores "Occurrence" operations - where the part is initially placed in the assembly, and instead fades in the object at occurrenceOne of the following Joint operation. This is typically how I set up my files, but I'm sure a more robust approach could be established. One case where I'm still having trouble is when the Joint's occurrenceOne is not the top-level component of the the new added assembly - see TODO note in Joint handler for more details.
- Additional timeline operations: This script does not handle all of the operations that Fusion360's design history timeline may contain, just those that I frequently use. The quality of the resulting animations could be improved by adding additional handlers for more operations.
- Select Rotation Axis: Currently this is set to rotate around the Y axis, but it would be nice to generalize this.