OK, I'm an idiot, needed to put the Tex bit in....still didn't work !
got this error-
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\User>obj2DatTex.py ship1.obj
File "C:\Documents and Settings\User\Obj2DatTex.py", line 1 SyntaxError: Non-ASCII character '\xfe' in file C:\Documents and Settings\User
\Obj2DatTex.py on line 1, but no encoding declared; see http://www.python.org/pe
ps/pep-0263.html for details
C:\Documents and Settings\User>
- any clue ?
ps..any idea what to say to ones wife when they ask why your screaming at the PC?
"4. Open a DOS-Box and switch to the folder with the model (and script). "
...switch to the folder with the model?
Assuming you have a model with a UV-Map - if not you'll have to create it in Wings3D.
Once exported you have three files (.obj, .mtl and .png).
1. E.g. your model (myModel.obj, myModel.mtl and myModel_auv.png) is located in C:\Models.
2. Copy the obj2dattex.py in that folder (C:\Models) via Explorer.
3. Open a Dos-Box (cmd.exe).
4. Type in cd\
5. Type in cd Models
6. Type in Obj2DatTex.py myModel.obj
You need to right-click on the texture file and export it ("make external" I think is the menu option - oh and make sure you do it in .png format, the default is .bmp iirc).
I'm giving up for tonight, (possibly for good) I cant seem to get anything to work
still get -
SyntaxError: Non-ASCII character '\xfe' in file C:\Documents and Settings\User
\Obj2DatTex.py on line 1, but no encoding declared; see http://www.python.org/pe
ps/pep-0263.html for details
I've got all 3 files and Obj2DatTex.py on 1 folder.
tried to do it backwards ie. got the dat2obj.py then tried to use the basic cobby. got the same error.
....I'll just go back to fixing REAL things, there is a fence needs my assistance (and it means I can get rid of some of this frustration with Hammer and Nails !!)
HUGE respect to all you guys who make OXPs and stuff, you are genious !
I'm giving up for tonight, (possibly for good) I cant seem to get anything to work :oops:
still get -
SyntaxError: Non-ASCII character '\xfe' in file C:\Documents and Settings\User
\Obj2DatTex.py on line 1, but no encoding declared; see http://www.python.org/pe
ps/pep-0263.html for details
I've got all 3 files and Obj2DatTex.py on 1 folder.
tried to do it backwards ie. got the dat2obj.py then tried to use the basic cobby. got the same error.
You could upload the files somewhere so we can take a look (and find out what goes wrong).