QAnimationClipLoader#

Enables loading key frame animation data from a file. More

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader

Synopsis#

Properties#

Functions#

Slots#

Signals#

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:

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:
property PᅟySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.status: Status#

This property contains the status of the animation clip.

Access functions:
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:

sourcePySide6.QtCore.QUrl

See also

source()

Setter of property source .

PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.source()#
Return type:

PySide6.QtCore.QUrl

See also

setSource()

Getter of property source .

PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.sourceChanged(source)#
Parameters:

sourcePySide6.QtCore.QUrl

Notification signal of property source .

PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.status()#
Return type:

Status

Returns the status of the animation clip.

Getter of property status .

PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader.statusChanged(status)#
Parameters:

statusStatus

Notification signal of property status .