mrdoob/three.js — Issue #1165: (exporting // obj, blender) unexpected token :
Author: rpsirois
Created: 2012-01-22 17:18:11+00:00
State: open

Let's get the basics out of the way:
- Thanks for working on three.js, it's great!
- Yes, I'm a noob
- Thanks for taking the time to enlighten the noobs ;)

When I export a file (either via the Blender exporter or the python *.obj converter script) I get this error:
Uncaught SyntaxError: Unexpected token :

This happens in all the following cases:
- with .obj files I've downloaded and converted (python converter)
- with a Blender file I've exported
- and also to the same Blender file exported to .obj and run through the py converter

I'm loading the model this way:
var loader = new THREE.JSONLoader();
loader.load( { model: "http://localhost:8888/get_model/Tank1.js", callback: function(geo) { createModel( geo ) } } );

I've pored over the json file and it looks perfectly formatted, yet it the dom keep raising this error. Perhaps someone has some insight that I lack?

I appreciate any help, thanks!