QAdditiveClipBlend#
Performs an additive blend of two animation clips based on an additive factor. More…
Synopsis#
Properties#
Functions#
def
additiveClip
()def
additiveFactor
()def
baseClip
()
Slots#
def
setAdditiveClip
(additiveClip)def
setAdditiveFactor
(additiveFactor)def
setBaseClip
(baseClip)
Signals#
def
additiveClipChanged
(additiveClip)def
additiveFactorChanged
(additiveFactor)def
baseClipChanged
(baseClip)
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#
QAdditiveClipBlend
can be useful to create advanced animation effects based on individual animation clips. For example, if you:
set the
baseClip
property to a normal walk cycle animation clip andset the
additiveClip
property to a shaking head difference clip,
then adjusting the additiveFactor
property will control how much of the additiveClip
gets added on to the baseClip
. This has he effect that with an additiveFactor
of zero, this blend node will yield the original walk cycle clip. With an additiveFactor
of 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
- class PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.additiveClip: PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode#
This property holds the additive clip to be blended with the baseClip
. The amount of blending is controlled by the additiveFactor
property.
- Access functions:
additiveClip
()setAdditiveClip
(additiveClip)Signal
additiveClipChanged
(additiveClip)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.additiveFactor: float#
Specifies the blending factor, typically between 0 and 1, to control the blending of two animation clips.
- Access functions:
setAdditiveFactor
(additiveFactor)Signal
additiveFactorChanged
(additiveFactor)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.baseClip: PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode#
This property holds the base animation clip. When the additiveFactor
is zero the baseClip will also be the resulting clip of this blend node.
- Access functions:
baseClip
()setBaseClip
(baseClip)Signal
baseClipChanged
(baseClip)
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.additiveClip()#
-
See also
Getter of property additiveClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.additiveClipChanged(additiveClip)#
- Parameters:
additiveClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
Notification signal of property additiveClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.additiveFactor()#
- Return type:
float
See also
Getter of property additiveFactor
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.additiveFactorChanged(additiveFactor)#
- Parameters:
additiveFactor – float
Notification signal of property additiveFactor
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.baseClip()#
-
See also
Getter of property baseClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.baseClipChanged(baseClip)#
- Parameters:
baseClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
Notification signal of property baseClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.setAdditiveClip(additiveClip)#
- Parameters:
additiveClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
See also
Setter of property additiveClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.setAdditiveFactor(additiveFactor)#
- Parameters:
additiveFactor – float
See also
Setter of property additiveFactor
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAdditiveClipBlend.setBaseClip(baseClip)#
- Parameters:
baseClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
See also
Setter of property baseClip
.