- class QAnimationClipLoader¶
Enables loading key frame animation data from a file. More…
Synopsis¶
Properties¶
Methods¶
def
__init__()
def
source()
def
status()
Slots¶
def
setSource()
Signals¶
def
sourceChanged()
def
statusChanged()
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 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
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.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:
Signal
sourceChanged()
- property statusᅟ: Qt3DAnimation.QAnimationClipLoader.Status¶
This property contains the status of the animation clip.
- Access functions:
Signal
statusChanged()
- __init__([parent=None])¶
- Parameters:
parent –
QNode
- __init__(source[, parent=None])
- Parameters:
source –
QUrl
parent –
QNode
Setter of property
sourceᅟ
.Getter of property
sourceᅟ
.Notification signal of property
sourceᅟ
.- status()¶
- Return type:
Status
Returns the status of the animation clip.
Getter of property
statusᅟ
.- statusChanged(status)¶
- Parameters:
status –
Status
Notification signal of property
statusᅟ
.