Extracting materials json from .babylon scene file

Hi everyone,

I just wanted to give back to the community and share some quick shell script I assembled to extract materials from the saved .babylon file.

My project utilizes deserializing each material json file. I made this script to make my life easier when communicating with our artists.

This requires jq to work.
It’s not perfect, especially on textures, it tries to decode base64 but the path is substituted with a simple string I replace in runtime.

Please give me feedback on bugs and improvements.

Extract .babylon materials to each json file (github.com)

4 Likes

My sh is a bit rusty, but if it works, it works! great initiative :slight_smile:

2 Likes