QAnimationClipLoader#
Enables loading key frame animation data from a file. More…
Synopsis#
Properties#
Functions#
Slots#
def
setSource
(source)
Signals#
def
sourceChanged
(source)def
statusChanged
(status)
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#
- class PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader([parent=None])#
PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader(source[, parent=None])
- Parameters:
source –
PySide6.QtCore.QUrl
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.QAnimationClipLoader.source: PySide6.QtCore.QUrl#
Holds the source URL from which to load the animation clip. Currently glTF2 and the native Qt 3D json animation file formats are supported.
In the case where a file contains multiple animations, it is possible to select which animation should be loaded by way of query parameters on the source url. The accepted query parameters are animationIndex and animationName. If both are specified, animationName is ignored.
If a file contains only a single animation, there is no need to specify the animationIndex or animationName. We simply use the one available animation.
- Access functions:
source
()setSource
(source)Signal
sourceChanged
(source)
- property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.status: Status#
This property contains the status of the animation clip.
- Access functions:
status
()Signal
statusChanged
(status)
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.Status#
This enum identifies the status of animation clip.
Constant
Description
Qt3DAnimation.QAnimationClipLoader.NotReady
The clip has not been loaded yet
Qt3DAnimation.QAnimationClipLoader.Ready
The clip was successfully loaded
Qt3DAnimation.QAnimationClipLoader.Error
An error occurred while loading the clip
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.setSource(source)#
- Parameters:
source –
PySide6.QtCore.QUrl
See also
Setter of property source
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.source()#
- Return type:
See also
Getter of property source
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.sourceChanged(source)#
- Parameters:
source –
PySide6.QtCore.QUrl
Notification signal of property source
.
Returns the status of the animation clip.
Getter of property status
.
- PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.statusChanged(status)#
- Parameters:
status –
Status
Notification signal of property status
.