MadQt.Widgets.AnimPicker

Version: 0.0.1

AnimPicker is a QDialog based on the PySide6 QEasing animation example that allows for a user to pick animation curves and parameters.

image

Contributors

Fabio Goncalves

Contact

GitHub Page

QtDesigner Plugin? No
Inheritance
PySide6.QtWidgets.QDialog

Methods
def setCurve()
def curve()
def loop()
def duration()
def period()
def amplitude()
def overshoot()

Detailed Description

AnimPicker is a QDialog based on the PySide6 QEasing animation example that allows for a user to pick animation curves and parameters.

You can see this dialog in action in the Expander Plugin
Or simply by opening it’s file located in MadQt/Widgets/anim_picker.py

You can use it as any other QDialog

from MadQt.Widgets import AnimPicker

dialog = AnimPicker()
if dialog.exec() == QDialog.Accepted:
    print(dialog.curve())
    print(dialog.loop())
    print(dialog.duration())
    print(dialog.period())
    print(dialog.amplitude())
    print(dialog.overshoot())

MadQt.Widgets.AnimPicker

  • Parameters
    • curve - int
    • loop - bool
    • duration - int
    • period - float
    • amplitude - float
    • overshoot - float
    • parent - QWidget
from MadQt.Widgets import AnimPicker
dialog = AnimPicker(
        curve=35,
        loop=True,
        duration=2000,
        period=None,
        amplitude=None,
        overshoot=None,
        parent=None)

setCurve

  • Parameters
    • curve - int
Sets the curve number to use.

curve

  • Return type
    • int
Returns the curve number.

loop

  • Return type
    • bool
Returns if loop active.

duration

  • Return type
    • int
Returns animation duration.

period

  • Return type
    • float
Returns animation curve period.

amplitude

  • Return type
    • float
Returns animation curve amplitude.

overshoot

  • Return type
    • float
Returns animation curve overshoot.