内容表

上一话题

Qt3DCore.QSkeleton

下一话题

Qt3DCore.QStaticPropertyUpdatedChangeBase

Qt3DCore.QSkeletonLoader

Used to load a skeleton of joints from file. 更多

Inheritance diagram of PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader

New in version 5.10.

概要

信号

详细描述

使用 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

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. setSource ( source )
参数

source QUrl

另请参阅

source()

PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader. source ( )
返回类型

QUrl

另请参阅

setSource()

PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader. sourceChanged ( source )
参数

source QUrl

PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader. status ( )
返回类型

Status

PySide2.Qt3DCore.Qt3DCore.QSkeletonLoader. statusChanged ( status )
参数

status Status