Skip to content

Changes ID field to match Name field within Live2D ID constraints

License

Notifications You must be signed in to change notification settings

LobsterFestival/Live2D-CSV-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Live2D-CSV-Converter

Never again wonder what the hell ArtMesh156 is when setting up clipping masks or setting up model lighting!

Updates the ArtMesh ID field to match the ArtMesh Name field within the ArtMesh ID fields naming constraints.

Still to Come...

A fork thats has a minimal GUI for adding and naming output file

A requirements.txt for python environment setup

PLEASE NOTE

You need to have you Live2D project open during the export from Live2D and during the conversion process, then import the corrected.csv back into Live2D.

To export or import the CSV file, in Live2D navigate to the top menu and go to Modeling>Bulk setting of model objects>Export/Import

This is a Live2D constraint on how they handle the GUIDs, if the project is closed and then you try to import, the import will fail, because the GUIDs will be different. Unfortunately this cant be worked around as there is no way to "know" what the new GUIDs will be.

Of course after the import is completed, the Live2D project can be closed an reopened as normal. Think of the GUIDs as relating to an instance of Live2D.

ID Rules

All Live2D IDs must to be unique. IDs can only have alphanumeric characters and underscores and must be shorter than 64 characters long. IDs must start with a letter.

Requirements

This program is dependent on:

pandas for dataframe structure pip install pandas

Usage

The program takes one argument, the path to the CSV you want to convert

The output file will be named corrected.csv

Example

python live2d_CSV_cleaner.py 'path_to_your.csv'

Ensure proper escaping and formatting in the path of course!

In the future there will be a second argument for output file name

e.g python live2d_CSV_cleaner.py 'path_to_your.csv' 'name_of_corrected.csv'

Testimonials

"I love it! The programmer who made this is so hot and smart!" - Cillia

"Cool" - Python Projects 007 (comment on Twitter)

About

Changes ID field to match Name field within Live2D ID constraints

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages