Used to load a skeleton of joints from file. 更多 …
New in version 5.10.
def
isCreateJointsEnabled
()
def
rootJoint
()
def
source
()
def
status
()
def
setCreateJointsEnabled
(enabled)
def
setSource
(source)
def
createJointsEnabledChanged
(createJointsEnabled)
def
rootJointChanged
(rootJoint)
def
sourceChanged
(source)
def
statusChanged
(status)
使用 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.
PySide2.Qt3DCore.Qt3DCore.
QSkeletonLoader
(
[
parent=None
]
)
¶
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader(source[, parent=None])
- param parent
QNode- param source
QUrl
构造新
QSkeletonLoader
with
parent
.
构造新
QSkeletonLoader
with
parent
and sets the
source
.
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.
Status
¶
This enum identifies the status of skeleton.
|
常量 |
描述 |
|---|---|
|
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
)
¶
createJointsEnabled
–
bool
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.
isCreateJointsEnabled
(
)
¶
bool
Returns a boolean indicating whether CreateJoints is enabled or not. The default value is
false
.
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.
rootJoint
(
)
¶
QJoint
Returns the root joint of the hierarchy of joints forming the skeleton.
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.
rootJointChanged
(
rootJoint
)
¶
rootJoint
–
QJoint
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.
setCreateJointsEnabled
(
enabled
)
¶
enabled
–
bool
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.
source
(
)
¶
QUrl
另请参阅
PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader.
sourceChanged
(
source
)
¶
source
–
QUrl