QMorphTarget#

A class providing morph targets to blend-shape animation. More

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget

Synopsis#

Properties#

Functions#

Signals#

Static functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

A QMorphTarget class is a convenience class, which provides a list of QAttributes , which the QMorphingAnimation uses to animate geometry. A QMorphTarget can also be created based on existing QGeometry .

class PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget([parent=None])#
Parameters:

parentPySide6.QtCore.QObject

Constructs a QMorphTarget with given parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.attributeNames: list of strings#

Holds a list of attribute names contained in the morph target.

Access functions:
PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.addAttribute(attribute)#
Parameters:

attributePySide6.Qt3DCore.Qt3DCore.QAttribute

Adds an attribute the morph target. An attribute with the same name must not have been added previously to the morph target.

PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.attributeList()#

Returns a list of attributes contained in the morph target.

PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.attributeNames()#
Return type:

list of strings

Getter of property attributeNames .

PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.attributeNamesChanged(attributeNames)#
Parameters:

attributeNames – list of strings

Notification signal of property attributeNames .

static PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.fromGeometry(geometry, attributes)#
Parameters:
Return type:

PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget

Returns a morph target based on the attributes in the given geometry.

PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.removeAttribute(attribute)#
Parameters:

attributePySide6.Qt3DCore.Qt3DCore.QAttribute

Removes an attribute from the morph target.

PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget.setAttributes(attributes)#
Parameters:

attributes

Sets attributes to the morph target. Old attributes are cleared.