Data for Embedded Use

Updated: 02/02/2023

This page is for Cubism version 4.2 or earlier. Click here for the latest version.

This section describes how to output models and motion files for games and other embedded applications.

Types of Embedded Data

The data for embedded use is output from the cmo3 and can3 files, respectively, as follows.

ExtensionDescription
1 .pngThe image set in the texture atlas is exported.
2 .moc3Actual data of Live2D models for use in applications.
3 .model3.jsonThe model3.json file is in JSON format and contains information for linking moc3 files, texture files, etc. By using model3.json when specifying models in the SDK’s sample1 or After Effects plug-ins, you do not need to specify texture files yourself.
4 .physics3.jsonThis data contains the set values for physical operations.
5 .userdata3.jsonThis data contains the set values of user data.
6 .cdi3.jsonThis data contains information for parameters and part names and linkage information for parameters.
7 .motion3.jsonThis data contains motion data for each scene set in Animator.

Export Files for Embedded Use

Exporting moc3 files

Before exporting, please display the parts you need and hide the parts you do not need.

When exporting a moc3 file, the first step is to edit the texture atlas.
See “Edit Texture Atlas” for more information.

When you have finished editing the texture atlas, with the models to be exported displayed, click on the [File] menu -> [Export Embedded File] -> [Export as moc3 file].

When the [Export Settings] dialog box appears, confirm each setting and click [OK].
Note: For the export target, select [1/1] to export the texture in its original size.

[Export Settings]
(1) Export version Select the version of the SDK you want to export.
(2) Export hidden parts Export hidden parts.
(3) Export guide image parts Export guide image parts.
Note: If the guide image parts are hidden, they will not be exported.
(4) Export hidden ArtMesh Export hidden ArtMeshes.
(5) Export physics settings file (physics3.json) Export the physics settings file (physics3.json).
(6) Export calculate FPS to physics settings file When the physics settings file (.physics3.json) is written out, the FPS information is also written out with it.
(7) Export user data file (userdata3.json) Export a user data file (userdata3.json).
(8) Supplementary view files
Export (cdi3.json).
Export parameters, part names, and parameter linkage information (cdi3.json).
Note: Export is recommended when using AE plug-ins.
(9) Model center X Set the center position of the model against the X axis (horizontal axis).
(10) Model center Y Set the center position of the model against the Y axis (vertical axis).
(11) Set at the center Return to default position.
(12) Canvas width (Unit) Set the size to fit the unit.
(13) Canvas height (Unit) Set the size to fit the unit.
(14) pixelPerUnit It is automatically set to match the width and height of the canvas.
(15) Export target Select the target to specify the texture size, file name, etc.
(16) Export type Select whether to export for SDK or nizima.
If nizima is selected, you can set the model name and preview size.
Precautions

If the physics settings are incorrect, a confirmation dialog box will appear and the incorrect physics settings will not be written out.
* A similar dialog box appears when you export physics settings.

moc file export (for 2.1)

This is a feature of the Cubism 3 version only.
With the Modeling View displayed, configure the settings and click [OK] to execute.

[Export Settings]
(1) Export version Select the version of the SDK you want to export.
(2) Export hidden parts Export hidden parts.
(3) Export guide image parts Export guide image parts.
(4) Apply color-migration prevention processing to textures Automatically apply dust removal to the texture and export it.
(5) Export model settings file (model.json)  Export a settings file for Live2D Viewer.
(6) Open in Live2D Viewer after exporting  After exporting, open the model in Live2D Viewer.
(7) Export target Select the target to specify the texture size, file name, etc.

Export Physics settings

The physics settings file is often exported together with the moc3 file when it is exported, but it can also be exported separately.
Select [File] menu -> [Export Embedded File] -> [Export Physics settings].
Export the physics settings file (.physics3.json), specifying the save location.

For FPS information:
If the FPS information is not set in the model file, the information dialog box is displayed and the FPS information is not written out.

If the FPS information is set in the model file, a confirmation dialog box will appear and FPS information will be exported only if [Yes] is selected.

How to set FPS information:
FPS information is set by opening “Physics and Scene Blend Settings” in the model file.
Model files created with Cubism Editor 4.1.01 or earlier may not have FPS information set.

Exporting motion files

With the animation file selected, configure the settings and click [OK] to execute.
It will be written out as a .motion3.json file.

POINT

Motion cannot be exported with model data selected.
Export is performed with the animation data or animation scene selected for export.

[Motion Data Settings]
(1) Export scene setting*2 Select the scene to be exported using the radio buttons and checkbox below.
(2) Export target Use the following pull-down menus to set the elements to be exported (model, parameter, and part display switching).
(3) Model Select the model to be exported. (15)
(4) Parameter*4 Select the parameters to be exported.
(5) Parts display switching*5 Select the display toggle for the exported parameters.
(6) Opacity*6 Select the opacity setting to be exported.
(7) Lip-sync Select the lip-sync settings to be exported.
(8) Eye blinking Select the eye blinking settings to be exported.
(9) Bake lip-sync and eye blinking into motion Lip-sync and eye blinking effect settings are baked into the motion keyframes.
(10) Apply frame steps Export including the frame steps set in the form animation.
(11) Export events Export including events set in Animator.
 
*2 Export scene setting
(12) Output all scenes Export all scenes.
(13) Output the currently selected scene Export the currently selected scene.
(14) Output scenes with motion export enabled
Select and export any scene with motion export enabled.
(15) Output Work Area Only the Work Area is exported.
 
*4 Export target (17)
A All parameters Export all parameters.
B Parameters that change Export the parameters that change.
C Keyed parameters Export the keyed parameters.
D Parameters that are not shied Export the non-shied parameters.
E Parameters that are not frozen Export parameters that are not frozen.
F No export Parameters are not exported.
 
*5 Export target (18)
A All Parts Export all parts.
B Variable parts Export variable parts.
C Keyed parts Export the keyed parts.
D Parts that are not shied Export the parts that are not shied.
E No export The part is not exported.
 
*6 Export target (19)
A Export Export all opacities.
B Only if the key is present Export the opacity only if the key is present.
C No export Opacity is not exported.
 
*6 Export target (20)
A Export Export all lip-sync settings.
B Only if the key is present Export lip-sync settings only if the key is present.
C No export Lip-sync settings are not exported.
 
*6 Export target (21)
A Export Export all eye blinking settings.
B Only if the key is present Export the eye blinking setting only if the key is present.
C No export The eye blinking settings are not exported.

Motion Export Settings

Motion can be selected and exported as desired from the motion export settings.
In the [Motion Export] section of the inspector palette, with the checkbox checked, click the “Gear” button to display the Settings window.

The [Motion Export Settings] dialog box appears.
You can freely select the motion you want to export using the checkboxes.
After making your selection, click [OK].

Output scenes with motion export enabled

Open the [Motion Data Settings] dialog box by following the steps below.
Click [File] menu -> [Export Embedded File] -> [Export motion file].

Select [Output scenes with motion export enabled] in the Export Scene Settings and click [OK].

The motion selected in the [Motion Export Settings] dialog box was exported to the specified destination.

Loading Files for Embedding

Motion files exported for embedding can be imported back into Animator.

How to import:

  1. Select a scene
  2. Right-click on the part of the track name (1) of the model for which you want to import motion
  3. Click Motion Load (2)
  4. Select the target motion3.json file

Note: It may take some time when loading motion.

Was this article helpful?
YesNo
Please let us know what you think about this article.