QSkeletonLoader

Used to load a skeleton of joints from file. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader

New in version 5.10.

Synopsis

Functions

Detailed Description

Use SkeletonLoader if you wish to load a whole skeleton from file rather than creating the joints yourself using Skeleton and Joints. Creating a skeleton and binding the vertices of a mesh to the skeleton is most easily performed in a 3D digital content creation tool such as Blender. The resulting skeleton and mesh can then be exported in a suitable format such as glTF 2 for consumption by Qt 3D.

class PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader([parent=None])

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader(source[, parent=None])

Parameters

Constructs a new QSkeletonLoader with parent.

Constructs a new QSkeletonLoader with parent and sets the source.

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.Status

This enum identifies the status of skeleton.

Constant

Description

Qt3DCore.QSkeletonLoader.NotReady

The skeleton has not been loaded yet

Qt3DCore.QSkeletonLoader.Ready

The skeleton was successfully loaded

Qt3DCore.QSkeletonLoader.Error

An error occurred while loading the skeleton

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.createJointsEnabledChanged(createJointsEnabled)
Parameters

createJointsEnabled – bool

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.isCreateJointsEnabled()
Return type

bool

Returns a boolean indicating whether CreateJoints is enabled or not. The default value is false.

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.rootJoint()
Return type

PySide6.Qt3DCore.Qt3DCore.QJoint

Returns the root joint of the hierarchy of joints forming the skeleton.

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.rootJointChanged(rootJoint)
Parameters

rootJointPySide6.Qt3DCore.Qt3DCore.QJoint

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.setCreateJointsEnabled(enabled)
Parameters

enabled – bool

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.setSource(source)
Parameters

sourcePySide6.QtCore.QUrl

See also

source()

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.source()
Return type

PySide6.QtCore.QUrl

See also

setSource()

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.sourceChanged(source)
Parameters

sourcePySide6.QtCore.QUrl

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.status()
Return type

Status

PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.statusChanged(status)
Parameters

statusStatus