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

Synopsis¶
Functions¶
def
addAttribute(attribute)def
attributeList()def
attributeNames()def
removeAttribute(attribute)def
setAttributes(attributes)
Signals¶
def
attributeNamesChanged(attributeNames)
Static functions¶
def
fromGeometry(geometry, attributes)
Detailed Description¶
A
QMorphTargetclass is a convenience class, which provides a list ofQAttributes, which theQMorphingAnimationuses to animate geometry. AQMorphTargetcan also be created based on existingQGeometry.
- class PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget([parent=None])¶
- param parent:
Constructs a
QMorphTargetwith givenparent.
- PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget.addAttribute(attribute)¶
- Parameters:
attribute –
PySide2.Qt3DRender.Qt3DRender.QAttribute
Adds an
attributethe morph target. An attribute with the same name must not have been added previously to the morph target.
- PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget.attributeList()¶
- Return type:
Returns a list of attributes contained in the morph target.
- PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget.attributeNames()¶
- Return type:
list of strings
Holds a list of attribute names contained in the morph target.
- PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget.attributeNamesChanged(attributeNames)¶
- Parameters:
attributeNames – list of strings
- static PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget.fromGeometry(geometry, attributes)¶
- Parameters:
geometry –
PySide2.Qt3DRender.Qt3DRender.QGeometryattributes – list of strings
- Return type:
Returns a morph target based on the
attributesin the givengeometry.
- PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget.removeAttribute(attribute)¶
- Parameters:
attribute –
PySide2.Qt3DRender.Qt3DRender.QAttribute
Removes an
attributefrom the morph target.
- PySide2.Qt3DAnimation.Qt3DAnimation.QMorphTarget.setAttributes(attributes)¶
- Parameters:
attributes –
Sets
attributesto the morph target. Old attributes are cleared.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.