IC Python API:RLPy RISkeletonComponent

From Reallusion Wiki!
Revision as of 02:35, 28 March 2019 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|IC_Python_API:RL_Python_Modules|Modules}} ==Inheritance== This class inherits public member functions from: *RLPy.RIBase ==Detai...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Main article: Modules.

Inheritance

This class inherits public member functions from:

Detailed Description

This class is the interface to the bone system in the scene.

avatars = RLPy.RGlobal.GetAvatars()
bone = avatars[0].GetSkeletonComponent()
print(bone.GetClip(0))

# get selected bone
selected_bones = bone.GetSelectedBones()
print(len(selected_bones))

# get root bone
root_bone = bone.GetRootBone()
print(root_bone)

Member Functions

GetClip

RLPy.RISkeletonComponent.GetClip ( self, uIndex )

Get clip of the bone.

Parameters

uIndex [IN] Index of the clip - int

Returns

Pointer to the clip - RLPy.RIClip

GetClipCount

RLPy.RISkeletonComponent.GetClipCount ( self )

Get number of clips.

Returns

Number of clips - int

GetMotionBones

RLPy.RISkeletonComponent.GetMotionBones ( self )

Get motion bones of the object.

Returns

Motion bone nodes - list

GetRootBone

RLPy.RISkeletonComponent.GetRootBone ( self )

Get root bone.

Returns

Pointer to root bone - RLPy.RINode

GetSelectedBones

RLPy.RISkeletonComponent.GetSelectedBones ( self )

Get selected bone.

Returns

Selected bones - list

GetSkinBones

RLPy.RISkeletonComponent.GetSkinBones ( self )

Get skin bones of avatar.

Returns

Skin bone nodes - list