Skip to content

nuekaze/VMD-motion-extract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VMD motion extract

A simple tool to convert VMD motion data for Miku Miku Dance into a CSV file and back again. I have noticed that some data is lost or changed when just converting from vmd to CSV and then back. But the files still works and I can not see any difference in the motion in MMD.

Names are now able to be decoded correctly. Interpolation data is still saved as hex because I can not decode it. It is probably just a curve in binary or something.

Have fun!

Usage

Usage: unpack.py input.vmd [output.csv] [OPTIONS]

Usage: repack.py input.csv [output.vmd] [OPTIONS]

Do --help for list of options.

File structure

First line if the file contains some meta data. Don't change this one or it will break.
#MMD Version;Model name;number of motion frames(int);number of face frames(int);number of camera frames(int);model name encoding;bone name encoding

Motion data
Frame number(int);Bone name;X-position(float);Y-position(float);Z-position(float);X-rotation(float);Y-rotation(float);Z-rotation(float);Interpolation data(hex)

Face data
Frame number(int);Blendshape;Value(float)

Camera data
Frame number(int);Length(float);X-position(float);Y-position(float);Z-position(float);X-rotation(float);Y-rotation(float);Z-rotation(float);Interpolation data(hex);FOV(int);Perspective(byte)

About

Convert VMD motion data to a readable text file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages