سؤال

EDIT: Nevermind, the windows command prompt seems to be a bit easier to use. It worked.
I'm trying to use the convert_ob_three.py python script file to convert .obj files to .js format.

Heres what I did:
1. Exported google sketchup model as a .obj
2. Installed python version 2, which by the way is the version that's required for the converter.
3. Tried running the script file and it closes instantly
4. Tried putting "python convert_obj_three.py -i mesh.obj -o mesh.js" (without the quotes) in the python command line. Got an error concerning bad syntax.
5. Tried with a "$" in front. No luck.

What the heck!? Should I just give up on .js and try the collada loader?

هل كانت مفيدة؟

المحلول

The way I interpret what you have tried, seems like you did all of those steps wrong by some means...

You can't simply double click a python script that expects to be run in a command line with args.

You can't run shell sytax from a python interactive interpreter line.

"$" has no meaning in a python shell

Most likely what you simply want to do (not knowing anything about this script) is to open a normal command shell and run: python convert_obj_three.py -i mesh.obj -o mesh.js

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top