QLerpClipBlend#
Performs a linear interpolation of two animation clips based on a normalized factor. More…
Synopsis#
Properties#
Functions#
def
blendFactor
()def
endClip
()def
startClip
()
Slots#
def
setBlendFactor
(blendFactor)def
setEndClip
(endClip)def
setStartClip
(startClip)
Signals#
def
blendFactorChanged
(blendFactor)def
endClipChanged
(endClip)def
startClipChanged
(startClip)
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#
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:
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.QLerpClipBlend.blendFactor: float#
Specifies the blending factor between 0 and 1 to control the blending of two animation clips.
- Access functions:
blendFactor
()setBlendFactor
(blendFactor)Signal
blendFactorChanged
(blendFactor)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.endClip: 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.
- Access functions:
endClip
()setEndClip
(endClip)Signal
endClipChanged
(endClip)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.startClip: 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.
- Access functions:
startClip
()setStartClip
(startClip)Signal
startClipChanged
(startClip)
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.blendFactor()#
- Return type:
float
See also
Getter of property blendFactor
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.blendFactorChanged(blendFactor)#
- Parameters:
blendFactor – float
Notification signal of property blendFactor
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.endClip()#
-
See also
Getter of property endClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.endClipChanged(endClip)#
- Parameters:
endClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
Notification signal of property endClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.setBlendFactor(blendFactor)#
- Parameters:
blendFactor – float
See also
Setter of property blendFactor
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.setEndClip(endClip)#
- Parameters:
endClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
See also
Setter of property endClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.setStartClip(startClip)#
- Parameters:
startClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
See also
Setter of property startClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.startClip()#
-
See also
Getter of property startClip
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QLerpClipBlend.startClipChanged(startClip)#
- Parameters:
startClip –
PySide6.Qt3DAnimation.Qt3DAnimation.QAbstractClipBlendNode
Notification signal of property startClip
.