Cubism Modeler‎ > ‎Exporting Files‎ > ‎

02. Export as .MOC File

Modeler exports .MOC files, which contain all the essential information such as range of motions, link to the texture file, and important information used in applications such as part ID numbers and names etc.

To export a functioning model, export it into an .moc file. 

    Exporting The Model To An [moc] File

Before you begin exporting, make sure to hide all the parts you would not like to export as part of a single model. 
Such as different clothes or different hairstyles for this one character. 

When you are ready, go to the top menu → [File] → [Export .moc File] 

The Export Dialogue will popup (the details are explained in the next segment)
Change the options to your liking and press [OK]. 

You will be prompted to write the file name, and it will be saved as [NAME.moc] 
The moc file will create additional files (depending on the chosen options in the dialogue above) 
in this instance, it created two files, one .moc file, and one .model.json file. 
It also created a texture folder containing the texture image of the model in the chosen resolution, here it is 1024. 

Any hidden parts will not be added to the exported texture files, the contents of the texture folder will look like this: 

    Export Settings

The export settings window will looks like this

Export Hidden Part
Choose whether or not to also include parts hidden before clicking the export command. 

Export Guide Image
Choose whether or not to export the image in the [Guide Image] folder of the [parts] tree. 

Output Vector Object (Vector Version)
This function is not available in Cubism versions. 

Sequential Outputting of Parts Display Group
Exports Display Groups as separate .moc files. 
This is useful for models with several sets of clothes or color palettes, Modeler will export them one group at a time. 

The files will be named according to what Display Group they were exported from. 

Apply the Dropped Color Prevention to the Texture
Depending on how you created your Texture file (PNG or PSD) sometimes transparent pixels that cannot be seen normally will cause a bleeding effect on the edges of drawn objects, which reduces the quality of the artwork. 
Enable the check box to automatically run the [Dust Removal Tool] during the export process. 

Running this function is possible before starting the export process, please refer to the「Dust Removal Tool Page」to learn more about when and how to use it. 
If you have already run this tool once, you do not need to have the check box enabled when exporting. 

Optimize for WebGL
When developing for WebGL, enable the check mark when exporting the moc file.
This will optimize the texture file to comply with the standards of WebGL. 

Export A Model Setting File( model.json ) 
In the past, you needed to install and use Live2D Viewer to export these functioning settings files (model.json) but now, Modeler can create them directly from the export process. 
model.json files contain the information needed by other applications that do not read .moc files, such as After Effects, Sample1 in the SDK packages, and others.
It automatically sets the link to the texture file, which means you do not need to set it manually when using the model.json file in your projects. 

Open with Live2D Viewer After Exporting
Choose whether or not to open the exported model file in Live2D Viewer, if you have it installed on your machine. 

Export Target
Set the magnification (size) of texture files used in the exported file. 
1/1 (1024 px )             ← This is the Default Setting
1/2 (512 px)
1/4 (256px )
User Defined             ← If the user has set a manual texture size

1/1 ( 1024px is the default setting, it exports the texture file in the exact size used in the original model.
usually 1/1 represents the size of the texture file, so if your model's texture file is 2048, it will be exported to that by default. 
This calculation is based on the biggest texture file used in the current model, so even if only of your texture files is 1024, every additional texture in the model will be exported to the same size. 

It is best to export to 1/1 texture size for your projects, unless there is a reason to change it. 

Selecting [Default] allows you to export different texture sizes within one export process, but it will depend on what values you have changed in your Target Settings. 

Click here to learn more about Target Settings.