Macro Animator

From FreeCAD Documentation
Jump to navigation Jump to search
Other languages:
English • ‎français • ‎polski

Animator.svg Macro Animator

Description
Animate your model by animating its properties with this feature Python object

Macro version: 0.2022.06.04
Last modified: 2022-06-04
FreeCAD version: Python 3 versions
Download: ToolBar Icon
Author: TheMarkster
Author
TheMarkster
Download
ToolBar Icon
Links
Macro Version
0.2022.06.04
Date last modified
2022-06-04
FreeCAD Version(s)
Python 3 versions
Default shortcut
None
See also
None

Description

Animator makes it very easy to animate your models by animating various properties. Available supported properties are kept in a drop down list for your convenience. Select the property to animate and double click the Animator object to start the animation. Double click again to stop the animation or let it complete. By default 100 frames are used with the start value of the property = 0 and the step increment of 1.0 per iteration through the loop. All of this easily configurable from the property view.

Full documentation can be found on github: Animator.

Animator scr1.png

Macro Animator screenshot‎

Legend

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager.


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://gist.github.com/mwganson/dace9e8dcfd861500647f9405c668358/raw/2965067307fff92c28b75deb079f0a3158940804/Animator.FCMacro" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://gist.github.com/mwganson/dace9e8dcfd861500647f9405c668358/raw/2965067307fff92c28b75deb079f0a3158940804/Animator.FCMacro")
<class="rawcodeurl"><a href="https://gist.github.com/mwganson/dace9e8dcfd861500647f9405c668358/raw/2965067307fff92c28b75deb079f0a3158940804/Animator.FCMacro">raw code</a>


ToolBar Icon Animator.svg

Script

Macro Animator.FCMacro