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
Models should be exported from Blender in GLB format without animation data and materials, and placed in files/asset/models/.
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
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
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