PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget

class QMorphTarget

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

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget

Synopsis

Properties

Methods

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 .

Note

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

property attributeNamesᅟ: list of strings

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

Access functions:
__init__([parent=None])
Parameters:

parentQObject

Constructs a QMorphTarget with given parent.

addAttribute(attribute)
Parameters:

attributeQAttribute

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

attributeList()
Return type:

.list of Qt3DCore.QAttribute

Returns a list of attributes contained in the morph target.

attributeNames()
Return type:

list of strings

Getter of property attributeNamesᅟ .

attributeNamesChanged(attributeNames)
Parameters:

attributeNames – list of strings

Notification signal of property attributeNamesᅟ .

static fromGeometry(geometry, attributes)
Parameters:
  • geometryQGeometry

  • attributes – list of strings

Return type:

QMorphTarget

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

removeAttribute(attribute)
Parameters:

attributeQAttribute

Removes an attribute from the morph target.

setAttributes(attributes)
Parameters:

attributes – .list of Qt3DCore.QAttribute

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