I've been developing a web application that displays 3D animated models created in 'Maya 2016'. These models are exported using the three.js (r81) 'maya exporter plugin'. For those interested, you can find the maya exporter plugin here. When I try to load the exported json model using the code snippet below:
var objectLoader = new THREE.ObjectLoader(manager);
objectLoader.load( 'assets/New-Heart/full_heart.json', function (object) {
scene.add(object);
}, onProgress, onError );
An error is generated: Uncaught TypeError: Materials[json.type] is not a constructor, which originates from the three.js library file (var material = new Materials json.type ;) at line number 31381.
I am seeking assistance in resolving this issue. Any suggestions or guidance would be greatly appreciated.