PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend¶
- class QAdditiveClipBlend¶
- Performs an additive blend of two animation clips based on an additive factor. - Details- QAdditiveClipBlendcan be useful to create advanced animation effects based on individual animation clips. For example, if you:- set the - baseClipproperty to a normal walk cycle animation clip and
- set the - additiveClipproperty to a shaking head difference clip,
 - then adjusting the - additiveFactorproperty will control how much of the- additiveClipgets added on to the- baseClip. This has he effect that with an- additiveFactorof zero, this blend node will yield the original walk cycle clip. With an- additiveFactorof 1, it will yield the walk cycle including a shaking head animation.- The blending operation implemented by this class is: - resultClip = baseClip + additiveFactor * additiveClip - There is nothing stopping you from using values for the additiveFacor property outside the 0 to 1 range, but please be aware that the input animation clips may not be authored in such a way for this to make sense. - See also - QBlendedClipAnimator- Synopsis¶- Properties¶- Methods¶- def - __init__()
- def - additiveClip()
- def - additiveFactor()
- def - baseClip()
 - Slots¶
- def - setBaseClip()
 - Signals¶- 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 additiveClipᅟ: QAbstractClipBlendNode¶
 - This property holds the additive clip to be blended with the - baseClip. The amount of blending is controlled by the- additiveFactorproperty.- Access functions:
 - property additiveFactorᅟ: float¶
 - Specifies the blending factor, typically between 0 and 1, to control the blending of two animation clips. - Access functions:
 - property baseClipᅟ: QAbstractClipBlendNode¶
 - This property holds the base animation clip. When the - additiveFactoris zero the baseClip will also be the resulting clip of this blend node.- Access functions:
 - __init__([parent=None])¶
- Parameters:
- parent – - QNode
 
 - additiveClip()¶
- Return type:
- QAbstractClipBlendNode
 - See also - setAdditiveClip()
 - Getter of property - additiveClipᅟ.- additiveClipChanged(additiveClip)¶
- Parameters:
- additiveClip – - QAbstractClipBlendNode
 
 - Notification signal of property - additiveClipᅟ.- additiveFactor()¶
- Return type:
- float 
 - See also - setAdditiveFactor()
 - Getter of property - additiveFactorᅟ.- additiveFactorChanged(additiveFactor)¶
- Parameters:
- additiveFactor – float 
 
 - Notification signal of property - additiveFactorᅟ.- baseClip()¶
- Return type:
- QAbstractClipBlendNode
 - See also - setBaseClip()
 - Getter of property - baseClipᅟ.- baseClipChanged(baseClip)¶
- Parameters:
- baseClip – - QAbstractClipBlendNode
 
 - Notification signal of property - baseClipᅟ.- setAdditiveClip(additiveClip)¶
- Parameters:
- additiveClip – - QAbstractClipBlendNode
 - See also - additiveClip()
 - Setter of property - additiveClipᅟ.- setAdditiveFactor(additiveFactor)¶
- Parameters:
- additiveFactor – float 
 - See also - additiveFactor()
 - Setter of property - additiveFactorᅟ.- setBaseClip(baseClip)¶
- Parameters:
- baseClip – - QAbstractClipBlendNode
 - See also - baseClip()
 - Setter of property - baseClipᅟ.