Comments Vineet started the conversationDecember 14, 2018 at 5:08amHi, I am trying to convert my obj model to .js format. I have tried the three.js editor and clara.io but the file generated by both are sort of different from the files you are using. Can you tell me how do you convert the models?Thanks 16Nick repliedDecember 15, 2018 at 8:11amHey Vineet,Can you send over the obj file to us and we'll convert it for you. We use a little python script that does the job Vineet repliedDecember 15, 2018 at 8:23amHi Nick,I haven't yet finalized the model I will be using. Could you please share the python script with me so that I can do it at my end? Thanks 16Nick repliedDecember 15, 2018 at 8:29amI'm attaching the script here.Once you unzip, put the script and your obj file in the same directory, and then through Terminal navigate to that directory and just type: python convert_obj_three.py -i infile.obj -o outfile.js Where the infile.obj is the name of your obj file and outfile.js is the desired name of your js file. 1 LikeVineet repliedDecember 15, 2018 at 5:39pmThanks a lot Nick :) Sign in to reply ...
Hi, I am trying to convert my obj model to .js format. I have tried the three.js editor and clara.io but the file generated by both are sort of different from the files you are using. Can you tell me how do you convert the models?
Thanks
Hey Vineet,

Can you send over the obj file to us and we'll convert it for you. We use a little python script that does the job
Hi Nick,
I haven't yet finalized the model I will be using. Could you please share the python script with me so that I can do it at my end?
Thanks
I'm attaching the script here.
Once you unzip, put the script and your obj file in the same directory, and then through Terminal navigate to that directory and just type:
Where the infile.obj is the name of your obj file and outfile.js is the desired name of your js file.
Thanks a lot Nick :)