QAdditiveClipBlend

Performs an additive blend of two animation clips based on an additive factor. More

Synopsis

Functions

Slots

Signals

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 and

  • set 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 PySide2.Qt3DAnimation.QAdditiveClipBlend([parent=None])
Parameters

parentPySide2.Qt3DCore.QNode

PySide2.Qt3DAnimation.QAdditiveClipBlend.additiveClip()
Return type

PySide2.Qt3DAnimation.QAbstractClipBlendNode

This property holds the additive clip to be blended with the baseClip . The amount of blending is controlled by the additiveFactor property.

PySide2.Qt3DAnimation.QAdditiveClipBlend.additiveClipChanged(additiveClip)
Parameters

additiveClipPySide2.Qt3DAnimation.QAbstractClipBlendNode

PySide2.Qt3DAnimation.QAdditiveClipBlend.additiveFactor()
Return type

float

Specifies the blending factor, typically between 0 and 1, to control the blending of two animation clips.

PySide2.Qt3DAnimation.QAdditiveClipBlend.additiveFactorChanged(additiveFactor)
Parameters

additiveFactor – float

PySide2.Qt3DAnimation.QAdditiveClipBlend.baseClip()
Return type

PySide2.Qt3DAnimation.QAbstractClipBlendNode

This property holds the base animation clip. When the additiveFactor is zero the will also be the resulting clip of this blend node.

PySide2.Qt3DAnimation.QAdditiveClipBlend.baseClipChanged(baseClip)
Parameters

baseClipPySide2.Qt3DAnimation.QAbstractClipBlendNode

PySide2.Qt3DAnimation.QAdditiveClipBlend.setAdditiveClip(additiveClip)
Parameters

additiveClipPySide2.Qt3DAnimation.QAbstractClipBlendNode

This property holds the additive clip to be blended with the baseClip . The amount of blending is controlled by the additiveFactor property.

PySide2.Qt3DAnimation.QAdditiveClipBlend.setAdditiveFactor(additiveFactor)
Parameters

additiveFactor – float

Specifies the blending factor, typically between 0 and 1, to control the blending of two animation clips.

PySide2.Qt3DAnimation.QAdditiveClipBlend.setBaseClip(baseClip)
Parameters

baseClipPySide2.Qt3DAnimation.QAbstractClipBlendNode

This property holds the base animation clip. When the additiveFactor is zero the will also be the resulting clip of this blend node.