Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.83 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.83 KB

Assets

Assets used in editor are defined in files/data/load.json.

Once configured, you can generate empty data for database and upload.

# LightDance-Editor/utils
node generateInitialExport.js ../files/data/load.json ../files > jsons/exportDataEmpty.json

Everytime you modified assets, remember to update files/data/load_hash.json for auto-update in blender.

# LightDance-Editor/utils
node updateFileHash.js ../files > ../files/data/load_hash.json

Model

Models should be exported from Blender in GLB format without animation data and materials, and placed in files/asset/models/.

Music and Waveform

We use audiowaveform to generate waveform. Refer to Installation section to install the package first.

You need to update waveform files/data/waveform.json when the music is modified.

# LightDance-Editor/utils
pnpm waveform

Light Table Backup

Save and Upload

You can save or upload light table to the database with utils/saveData.js and utils/initDB.js.

# LightDance-Editor/utils
# Save to ./out/exportData.json
pnpm save
# Upload ./out/exportData.json to the database
pnpm initDB

Auto-backup

The backups are stored in LightTableBackup.

To periodically create backup for database, you can use scripts/backup/backup.sh.

# LightDance-Editor/scripts/backup
# Modify the path of repositories used in this script for your setup.
bash backup.sh