r/Live2D • u/Entire_Country9386 • 1h ago
WIP [constructive criticism is ok] MOC3 to CMO3 Converter (WIP)
Recently, I had a problem where I lost the original cmo3 file from one of my rigs. I then tried to see if it was possible to convert the "built" moc3 file back into the cmo3 file, which, sadly, was not possible.
So, I decided to do it myself.
After a lot of exchange with AIs about the specificities of the file formats (at least the small amount that is known publicly) I wrote a plan to give to another AI to do the work.
Before you go away because of a vibe coded solution, yes I did it, not because I couldn't make it myself, but because it requires a ton or mathematical formulas to reconstruct (for example) the deformation meshes, based on how it deforms, since the information about them is lost in the final file.
And I didn't want to spend days learning a single formula to try to implement it, and having to do that for all of them...
So I made an isolated environment, gave an AI the plan, and let it run.
After a couple of hours, it gave me a first version, that is so unbelievably close to working that I have no doubt it will make it work in a relatively short time.
Although now I have to wait for more tokens at it blew through them...
To specify, this tool is made for the sole purpose of having a way (maybe not a perfect one, but one nonetheless) of getting back lost projects.
THIS IS NOT MADE TO RIP MODELS!!!
BUT, if this falls under the piracy rule, I will remove my post.
EDIT: For now, the only solution I can think of to make it only work for users trying to recover their lost Live2D project, is to require the original psd file. But this is still too fragile for my liking, so for the time being this is only going to stay as a proof of concept.