I’m working on an editor which overlays the scene that would allow someone to edit standard materials using Blender material values. It uses metadata to hold the Blender values. I have made changes to the Blender exporter to include the metadata in the ‘output.babylon’ file. However, that data was unavailble in babylon.js.
I tweaked a local copy of ‘babylon.3.3.0.max.js’ to get everything to work. I point my tweaks to the appropriate babylon.ts files.
I see that the 'metadata' property has been added to 'material.ts' since version 3.3.0. However it is null in the scene.
I think by changing <line 123> from this:
/** * Gets or sets user defined metadata */ public metadata: any = null;
/** * Gets or sets user defined metadata */ @serialize() public metadata: any = null;
would make it work.