QSkeletonLoader¶
Used to load a skeleton of joints from file. More…
New in version 5.10.
Synopsis¶
Functions¶
def
isCreateJointsEnabled
()def
rootJoint
()def
source
()def
status
()
Slots¶
def
setCreateJointsEnabled
(enabled)def
setSource
(source)
Signals¶
def
createJointsEnabledChanged
(createJointsEnabled)def
rootJointChanged
(rootJoint)def
sourceChanged
(source)def
statusChanged
(status)
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 PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader([parent=None])¶
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader(source[, parent=None])
- param parent:
- param source:
Constructs a new
QSkeletonLoader
withparent
.Constructs a new
QSkeletonLoader
withparent
and sets thesource
.
- PySide2.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
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.createJointsEnabledChanged(createJointsEnabled)¶
- Parameters:
createJointsEnabled – bool
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.isCreateJointsEnabled()¶
- Return type:
bool
This property holds A boolean to indicate whether createJoints is enabled or not..
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.rootJoint()¶
- Return type:
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.rootJointChanged(rootJoint)¶
- Parameters:
rootJoint –
PySide2.Qt3DCore.Qt3DCore.QJoint
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.setCreateJointsEnabled(enabled)¶
- Parameters:
enabled – bool
This property holds A boolean to indicate whether createJoints is enabled or not..
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.setSource(source)¶
- Parameters:
source –
PySide2.QtCore.QUrl
Holds the source url from which to load the skeleton.
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.source()¶
- Return type:
Holds the source url from which to load the skeleton.
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.sourceChanged(source)¶
- Parameters:
source –
PySide2.QtCore.QUrl
- PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.status()¶
- Return type:
Holds the current status of skeleton loading.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.