Cubism SDK‎ > ‎Live2D Library‎ > ‎Motion Manager‎ > ‎

Face Expression Motion

What is face expression motion?
Face expression is treated as a kind of motion.
It takes over the AMotion of Live2D library, and can be managed by the MotionQueueManager, same as usual motions.
We make settings of the value by setParamFloat for the usual motion, however we make settings by adding the value to make relative change for the face expression motions.

For example, there is a usual motion with which the Motion Parameter A changes from 0 to 1, and the face expression motion is set as 0.5.
In this case, the Motion Parameter A will change from 0.5 to 1.5 by playing the usual motion and the face expression motion simultaneously.
(If the Motion Parameter exceeds the maximum value, it will be adjusted to be the maximum value.)


You can combine the Motion Parameter's ID and the value to duplicate the object in the Animator tool, however you can do the same with the usual motions.
A face expression motion is a kind of motion to create the relative change from the difference.
It does not set the Motion Parameter value loaded from the JSON file as it is, however it adds the value subtracted the default value to the present Motion Parameter value.
For example, the Motion Parameter of a specific face expression will be calculated and set as below;

Value of the Motion Parameter    = usual motion value + face expression motion value
= usual motion value + ( face expression Motion Parameter value - face expression default value )

JSON setting file

The setting file is written in JSON format (a data description language based on the object description method of JavaScript).
Therefore, it is easy to check by the text editor or to expand the specification.


Difference between SDK version 0.9 or before and 1.0 or later

With version 1.0 or later, the method of how to set the face expression is changed from that with the Live2D SDK version 0.9 or before.
You need to prepare one JSON file for one face expression with version 0.9 or before,
whereas you use the data stored in one JSON file for face expressions to create a face expression you need with version 1.0 or later.

Refer to this page to modify the SDK with version 0.9 or before to the settings with version 1.0 or later.