class QAnimationClipLoader#

Enables loading key frame animation data from a file. More

Inheritance diagram of PySide6.Qt3DAnimation.Qt3DAnimation.QAnimationClipLoader

Synopsis#

Properties#

Methods#

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 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.

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

This property contains the status of the animation clip.

Access functions:
__init__([parent=None])#
Parameters:

parentQNode

__init__(source[, parent=None])
Parameters:
  • sourceQUrl

  • parentQNode

setSource(source)#
Parameters:

sourceQUrl

See also

source()

Setter of property sourceᅟ .

source()#
Return type:

QUrl

See also

setSource()

Getter of property sourceᅟ .

sourceChanged(source)#
Parameters:

sourceQUrl

Notification signal of property sourceᅟ .

status()#
Return type:

Status

Returns the status of the animation clip.

Getter of property statusᅟ .

statusChanged(status)#
Parameters:

statusStatus

Notification signal of property statusᅟ .