QLerpClipBlend#

Performs a linear interpolation of two animation clips based on a normalized factor. More

Synopsis#

Functions#

Slots#

Signals#

Detailed Description#

QLerpClipBlend can be useful to create advanced animation effects based on individual animation clips. For instance, given a player character, lerp blending could be used to combine a walking animation clip with an injured animation clip based on a blend factor that increases the more the player gets injured. This would then allow with blend factor == 0 to have a non injured walking player, with blend factor == 1 a fully injured player, with blend factor == 0.5 a partially walking and injured player.

See also

QBlendedClipAnimator

class PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend([parent=None])#
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.blendFactor()#
Return type

float

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

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.blendFactorChanged(blendFactor)#
Parameters

blendFactor – float

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.endClip()#
Return type

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode

Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 1.

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.endClipChanged(endClip)#
Parameters

endClipPySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.setBlendFactor(blendFactor)#
Parameters

blendFactor – float

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

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.setEndClip(endClip)#
Parameters

endClipPySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode

Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 1.

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.setStartClip(startClip)#
Parameters

startClipPySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode

Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 0.

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.startClip()#
Return type

PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode

Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 0.

PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.startClipChanged(startClip)#
Parameters

startClipPySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode