Live2DModel¶
Model for inspecting and manipulating
Can be created without a device (OpenGL context). Supports inspecting model information, manipulating parameters, and controlling motions. Use Live2DPlayer to draw it.
Members¶
Constructors¶
Methods¶
- clear
- load
- clone
- getExpressionCount
- getExpressionName
- setExpression
- getExpression
- fixExpression
- getMotionGroupCount
- getMotionGroupName
- getMotionCount
- getMotionName
- getMotionType
- setMotionType
- startMotion
- stopMotion
- getCurrentMotions
- getParameterCount
- getParameterInfo
- getParameterValue
- setParameterValue
- setParameterType
- setDiffParameterValue
- progress
- canSync
- sync
- addLipSyncId
- addEyeBlinkId
- isPlaying
- getPartCount
- getPartInfo
- getPartValue
- setPartValue
- setPartFadeTime
- getEventCount
- getEventName
- addVriableMotion
- delVariableMotion
- getVariableMotionCount
- getVariableMotionName
- getVariableMotionInfo
- setVariable
- getVariable
- isMosaicModel
Live2DModel¶
Constructor
Description
Constructor
No device needs to be specified.
clear¶
Method
Description
Clears the contents
load¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
filename |
|
clone¶
Method
Description
Duplicates the model
getExpressionCount¶
Method
getExpressionName¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no |
|
setExpression¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
id |
|
getExpression¶
Method
fixExpression¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
id |
|
getMotionGroupCount¶
Method
getMotionGroupName¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no |
|
getMotionCount¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
group |
|
getMotionName¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
group |
|
|
no |
|
getMotionType¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
group |
|
setMotionType¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
group |
|
|
type |
|
startMotion¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
group |
|
|
no_or_name |
|
|
loop |
|
|
fadeIn |
|
|
fadeOut |
|
stopMotion¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
group |
|
getCurrentMotions¶
Method
getParameterCount¶
Method
getParameterInfo¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no |
|
getParameterValue¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
setParameterValue¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
|
value |
|
setParameterType¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
|
type |
|
setDiffParameterValue¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
|
value |
|
progress¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
tick |
|
canSync¶
Method
sync¶
Method
addLipSyncId¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
addEyeBlinkId¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
isPlaying¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
group |
|
getPartCount¶
Method
getPartInfo¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no |
|
getPartValue¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
setPartValue¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no_or_name |
|
|
value |
|
setPartFadeTime¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
fadeTime |
|
getEventCount¶
Method
getEventName¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
no |
|
addVriableMotion¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
varname |
|
|
group |
|
|
no_or_name |
|
|
min |
|
|
max |
|
|
descrete |
|
delVariableMotion¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
varname |
|
getVariableMotionCount¶
Method
getVariableMotionName¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
index |
|
getVariableMotionInfo¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
index |
|
setVariable¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
varname |
|
|
value |
|
getVariable¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
varname |
|
isMosaicModel¶
Method