IC8 Python API:RLPy RIFacialDevice

From Reallusion Wiki!
Revision as of 01:34, 18 January 2023 by Chuck (RL) (Talk | contribs) (Created page with "{{TOC}} {{Parent|IC_8_Python_API:Modules|iC8 Modules}} {{Modified}} ==Description== This class is used to represent the facial mocap device and provides methods to control f...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Main article: iC8 Modules.
Last modified: 01/18/2023

Description

This class is used to represent the facial mocap device and provides methods to control facial animation, including eye movement, head rotation and facial expression.

Class Methods

RLPy.RIFacialDevice.GetFacialSetting(self, spAvatar)

Get facial setting.

Parameters

spAvatar[IN] avatar - RLPy.RIAvatar

Returns

facial setting - RLPy.RFacialSetting

1 # No example

RLPy.RIFacialDevice.Initialize(self)

Initialize facial device.

Returns

RLPy.RStatus.Success - Succeed
RLPy.RStatus.Failure - Fail
1 # No example

RLPy.RIFacialDevice.ProcessData(self, args)

Process data to IC avatar.

Parameters

spAvatar[IN] avatar - RLPy.RIAvatar
kFacial[IN] facial weight, the expression order is return by the function RIFaceComponent::GetExpressionNames( L"", true)- float
nDeviceTime[IN] device time in millisecond - int

Returns

RLPy.RStatus.Success - Succeed
RLPy.RStatus.Failure - Fail
1 # No example

RLPy.RIFacialDevice.SetFacialSetting(self, args)

Set facial setting.

Parameters

kAvatarList[IN] avatar list - RLPy.RIAvatar
spSetting[IN] facial setting - RLPy.RFacialSetting

Returns

RLPy.RStatus.Success - Succeed
RLPy.RStatus.Failure - Fail
1 # No example