QSkeletonLoader#
Used to load a skeleton of joints from file. More…
Synopsis#
Properties#
createJointsEnabled
- A boolean to indicate whether createJoints is enabled or not
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)
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#
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:
source –
PySide6.QtCore.QUrl
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QSkeletonLoader
with parent
.
Constructs a new QSkeletonLoader
with parent
and sets the source
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.createJointsEnabled: bool#
This property holds A boolean to indicate whether createJoints is enabled or not..
- Access functions:
setCreateJointsEnabled
(enabled)Signal
createJointsEnabledChanged
(createJointsEnabled)
- property PᅟySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.rootJoint: PySide6.Qt3DCore.Qt3DCore.QJoint#
- Access functions:
rootJoint
()Signal
rootJointChanged
(rootJoint)
- property PᅟySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.source: PySide6.QtCore.QUrl#
Holds the source url from which to load the skeleton.
- Access functions:
source
()setSource
(source)Signal
sourceChanged
(source)
- property PᅟySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.status: Status#
Holds the current status of skeleton loading.
- Access functions:
status
()Signal
statusChanged
(status)
- 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
Notification signal of property createJointsEnabled
.
- PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.isCreateJointsEnabled()#
- Return type:
bool
Returns a boolean indicating whether CreateJoints is enabled or not. The default value is false
.
Getter of property createJointsEnabled
.
- PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.rootJoint()#
- Return type:
Returns the root joint of the hierarchy of joints forming the skeleton.
Getter of property rootJoint
.
- PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.rootJointChanged(rootJoint)#
- Parameters:
rootJoint –
PySide6.Qt3DCore.Qt3DCore.QJoint
Notification signal of property rootJoint
.
- PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.setCreateJointsEnabled(enabled)#
- Parameters:
enabled – bool
See also
Setter of property createJointsEnabled
.
- PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.setSource(source)#
- Parameters:
source –
PySide6.QtCore.QUrl
See also
Setter of property source
.
- PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.source()#
- Return type:
See also
Getter of property source
.
- PySide6.Qt3DCore.Qt3DCore.QSkeletonLoader.sourceChanged(source)#
- Parameters:
source –
PySide6.QtCore.QUrl
Notification signal of property source
.
Getter of property status
.
Notification signal of property status
.