Live2D Viewer‎ > ‎

03. Settings for Pose

The following is a guide to create a json data file for posing.


    Adding a Pose data

Go to the top menu and click [Project]  →  [Add]  →  [Pose]

A new file "pose.json" is then created. 




  
  Pose Group Settings


Selecting pose.json appears a list of Parts according to all the Parts ID in your cmox file. 

The configuration in this pose.json file can be transferred to other moc files that render alternate clothing textures. 

We will test this function on Haru's arms. Find the ID for the arms, and assign the Group Number (Group No.) as shown in the following.



Only one item (Part) of each Group Number is displayed in the model.

According to the structure of the sample model, we should assign the Group Number for the arms as such:
  • PARTS_01_ARM_L_A_001 → Left arm       Arm Pose A      Clothes1 → 
  • PARTS_01_ARM_R_A_001 → Right arm       Arm Pose A      Clothes1 → 
  • PARTS_01_ARM_L_B_001  Left arm       Arm Pose B     Clothes1 → 
  • PARTS_01_ARM_R_B_001 → Right arm   Arm Pose B   Clothes1 → 

The sample model has separate left and right arm.
If your model have both L/R arms as one part, do the following configuration instead.
  • PARTS_01_ARM_A_001 → Arm Pose A   Clothes1 → 
  • PARTS_01_ARM_B_001 → Arm Pose B       Clothes → 


Once completed the setup, test the performance with motions that involve changing arm pose. 
If done correctly, the default arm pose will swap to the alternate arm pose during playback.




 
  Parent-child Setting for Pose


Other than interchanging visibility among parts, there is also a function that allows assigning "Parent ID" to parts to establish parent-child relationship.



Assigning the parent in the parent ID column makes the child part inheriting the parts-swapping settings of the parent part during motion playback.

According to the structure of the sample model, we should assign the Group Number for the arms as such:
  • PARTS_01_ARM_L_A_002 → Left arm       Arm Pose A      Clothes2 → PARTS_01_ARM_L_A_001
  • PARTS_01_ARM_R_A_002 → Right arm       Arm Pose A      Clothes2 → PARTS_01_ARM_R_A_001
  • PARTS_01_ARM_L_B_002  Left arm       Arm Pose B     Clothes2 → PARTS_01_ARM_L_B_001
  • PARTS_01_ARM_R_B_002 → Right arm   Arm Pose B   Clothes2 → PARTS_01_ARM_R_B_001

For models that have both arms as one part: 
  • PARTS_01_ARM_A_002 → Arm Pose A   Clothes1 → PARTS_01_ARM_A_001
  • PARTS_01_ARM_B_002 → Arm Pose B       Clothes → PARTS_01_ARM_B_001

TIPS
When you need to enter the parent ID, you may directly copy it from the list by right-clicking on the ID.



  
  Fading Rate When Changing Pose


The meter "Fade(ms)" sets the fade in/out timing for the parts visibility interchange during pose changing.
The default rate is 500.




    Export JSON Settings 

To export the pose settings in JSON format, go to the top menu and select [ File ] → [ Write ] → [ Pose ].

Comments