PySide6.Qt3DAnimation.Qt3DAnimation.QMorphTarget¶
- class QMorphTarget¶
- A class providing morph targets to blend-shape animation. - Details- A - QMorphTargetclass is a convenience class, which provides a list of- QAttributes, which the- QMorphingAnimationuses to animate geometry. A- QMorphTargetcan also be created based on existing- QGeometry.- Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - addAttribute()
- def - attributeList()
- def - attributeNames()
- def - setAttributes()
 - Signals¶- Static functions¶- def - fromGeometry()
 - 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 - Note - Properties can be used directly when - from __feature__ import true_propertyis used or via accessor functions otherwise.- property attributeNamesᅟ: list of strings¶
 - Holds a list of attribute names contained in the morph target. - Access functions:
 - Constructs a - QMorphTargetwith given- parent.- addAttribute(attribute)¶
- Parameters:
- attribute – - QAttribute
 
 - Adds an - attributethe 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:
- geometry – - QGeometry
- attributes – list of strings 
 
- Return type:
- QMorphTarget
 
 - Returns a morph target based on the - attributesin the given- geometry.- removeAttribute(attribute)¶
- Parameters:
- attribute – - QAttribute
 
 - Removes an - attributefrom the morph target.- setAttributes(attributes)¶
- Parameters:
- attributes – .list of Qt3DCore.QAttribute 
 
 - Sets - attributesto the morph target. Old attributes are cleared.