Mac 10.3.6/Python 2.3
by Court Batson · in Artist Corner · 11/19/2004 (10:21 am) · 18 replies
Has anyone got the DTS exporter for Blender working on Mac 10.3.6/Python 2.3? Not sure if it matters, but I have GCC 3.3.
I have another python script working in blender (x-plane importer), but can't seem to get this one to go. So far, I've put the entire contents of the extracted zip archive in ~/.blender/scripts/. This didn't work so I added this directory to my .bashrc file in a variable called $PYTHONPATH. This didn't work either. Before doing this, the variable did not exist. Now it will echo the path.
I'm wondering if the version of python shipped with 10.3 doesn't include what all is needed, but don't want to install the complete version of python if I'm just doing something else wrong.
I've read http://download.blender.org/documentation/html/c6787.html, is there some other documentation I'm missing?
Any help is greatly appreciated.
Thanks,
Court
I have another python script working in blender (x-plane importer), but can't seem to get this one to go. So far, I've put the entire contents of the extracted zip archive in ~/.blender/scripts/. This didn't work so I added this directory to my .bashrc file in a variable called $PYTHONPATH. This didn't work either. Before doing this, the variable did not exist. Now it will echo the path.
I'm wondering if the version of python shipped with 10.3 doesn't include what all is needed, but don't want to install the complete version of python if I'm just doing something else wrong.
I've read http://download.blender.org/documentation/html/c6787.html, is there some other documentation I'm missing?
Any help is greatly appreciated.
Thanks,
Court
#2
11/21/2004 (8:35 am)
I don't get dts as an option in the export menu. What version of Blender are you using?
#3
11/21/2004 (9:55 am)
I'm using 2.35.
#4
For the menu entries, the Dts_Blender.py in the ZIP file contains the header of:
n 'Torque DTS Exporter'
b 233
g 'Export'
s 'Export' export
s 'Configure' config
t 'Export to Torque (.dts) format.'
Change the block to read:
Name: 'Torque DTS Exporter'
Blender: 233
Group: 'Export'
Submenu: 'Export' export
Submenu: 'Configure' config
Tooltip: 'Export to Torque (.dts) format.'
Try that. Works for me.
11/21/2004 (10:02 am)
Here's something I posted in another forum:For the menu entries, the Dts_Blender.py in the ZIP file contains the header of:
n 'Torque DTS Exporter'
b 233
g 'Export'
s 'Export' export
s 'Configure' config
t 'Export to Torque (.dts) format.'
Change the block to read:
Name: 'Torque DTS Exporter'
Blender: 233
Group: 'Export'
Submenu: 'Export' export
Submenu: 'Configure' config
Tooltip: 'Export to Torque (.dts) format.'
Try that. Works for me.
#5
Thanks again for your help!
11/22/2004 (8:49 am)
This is great, thanks! I guess I'll need to figure out how to structure my content before I can start exporting DTS files.Thanks again for your help!
#6
http://www.blendedpixels.com/torque/
I'll update it later with some generic examples. I'm also thinking about a player replacement, so I'll put it there, too.
11/22/2004 (9:30 am)
Here's a site I wrote with a vehicle example on it (same concepts about shape, detailXX, col, colX, etc apply to any DTS):http://www.blendedpixels.com/torque/
I'll update it later with some generic examples. I'm also thinking about a player replacement, so I'll put it there, too.
#7
OSX 10.3.6
Blender 2.3.5b
Python 2.3
Torque Exporter .85
I've basically got it installed and appearing in the export menu, but i get a Python console error. Any pointers?
"Error: Python Script Error: check console."
12/06/2004 (4:44 pm)
SpecsOSX 10.3.6
Blender 2.3.5b
Python 2.3
Torque Exporter .85
I've basically got it installed and appearing in the export menu, but i get a Python console error. Any pointers?
"Error: Python Script Error: check console."
#8
Name: 'Torque DTS Exporter'
Blender: 233
Group: 'Export'
Submenu: 'Export' export
Submenu: 'Configure' config
Tooltip: 'Export to Torque (.dts) format.'
(replace above backticks with single quotes)
What did your console say?
12/06/2004 (4:53 pm)
Did you edit your "Dts_Blender.py" file as Scott suggested above?Name: 'Torque DTS Exporter'
Blender: 233
Group: 'Export'
Submenu: 'Export' export
Submenu: 'Configure' config
Tooltip: 'Export to Torque (.dts) format.'
(replace above backticks with single quotes)
What did your console say?
#9
I agree with Court Batson. What's the console say? I've had a few models that had something in the geometry that was incompatible with the exporter. I don't recall specific examples now, but I have seen it (really annoying errors, too).
12/06/2004 (6:57 pm)
Getting a message that there's an error in the console means that Blender has, at least, located and attempted to execute the Dts_Blender.py script.I agree with Court Batson. What's the console say? I've had a few models that had something in the geometry that was incompatible with the exporter. I don't recall specific examples now, but I have seen it (really annoying errors, too).
#10
"What did your console say?"
Lol, I've never talked to my console. Actually, I've never poked around at that level on my Mac since OS X came out.
From the console:
:===== Tue Dec 07 2004 ===== 00:38:11 US/Eastern =====
Could not find platform independent libraries
Could not find platform dependent libraries
Consider setting $PYTHONHOME to[:]
'import site' failed; use -v for traceback
No installed Python found.
Only built-in modules are available. Some scripts may not run.
Continuing happily.
Traceback (most recent call last):
File "", line 36, in ?
ImportError: No module named DTSPython:"
Guess I need to relook at my install. It's late, I'll check tomorrow.
Thanks for the responses.
12/06/2004 (7:59 pm)
Yeah, I did Scott's change to the "Dts_blender.py"."What did your console say?"
Lol, I've never talked to my console. Actually, I've never poked around at that level on my Mac since OS X came out.
From the console:
:===== Tue Dec 07 2004 ===== 00:38:11 US/Eastern =====
Could not find platform independent libraries
Could not find platform dependent libraries
Consider setting $PYTHONHOME to
'import site' failed; use -v for traceback
No installed Python found.
Only built-in modules are available. Some scripts may not run.
Continuing happily.
Traceback (most recent call last):
File "
ImportError: No module named DTSPython:"
Guess I need to relook at my install. It's late, I'll check tomorrow.
Thanks for the responses.
#11
Yes, definitely re-check your install.
12/06/2004 (8:58 pm)
It's the last line about DTSPython. Did you copy the files correctly? You should have the Dts_Blender.py, some other files, and a directory with much more scripts in it.Yes, definitely re-check your install.
#12
Downloaded Blender 2.35a (there is a note for 2.35b, but not linked to Max OS X 10.3 yet)
Downloaded Export Script pyoct230.85.zip
Mac OS X 10.3.6 already has Python 2.3 installed.
I followed Mac OS X instructions I found in a thread in this forum, but added in Scott Coursey's header change.
1) Installed Blender in my Applications Folder.
2) Unpacked the exporter scripts to a temporary directory.
3) Created a directory for my custom Blender scripts - "/Scripts/blender_scripts"
4) Copied Dts_Blender.py, Blender_Gui.py and Convert_Sticky.py (and all but DTSPython directory) into"/Scritps/blender_scripts"
5) Changed the header in the file Dts_Blender.py using TextEdit. (see HEADER CHANGE BELOW, thanks Scott)
6) Copied the DTSPython directory to Macintosh HD/Library/Python/2.3 (this is the default location where python is looking for additional libraries).
7) Started Blender.
8) In the botom window/frame select User Preferences.
9) Clicked the -File Paths- button.
10) Change the Scripts: Path to the path you used in step 3
11) Click re-evaluate scripts registration in menus (the button next to the browse button)
12) Save User Prefs (control + U)
HEADER CHANGE
For the menu entries, the Dts_Blender.py in the ZIP file contains the header of:
n 'Torque DTS Exporter'
b 233
g 'Export'
s 'Export' export
s 'Configure' config
t 'Export to Torque (.dts) format.'
Change the block to read:
Name: 'Torque DTS Exporter'
Blender: 233
Group: 'Export'
Submenu: 'Export' export
Submenu: 'Configure' config
Tooltip: 'Export to Torque (.dts) format.'
Thanks for the help all.
12/07/2004 (6:29 pm)
Well, I got it too work, at least on the "example.blend" file. Now to learn blender! This might take a few days, eh?Downloaded Blender 2.35a (there is a note for 2.35b, but not linked to Max OS X 10.3 yet)
Downloaded Export Script pyoct230.85.zip
Mac OS X 10.3.6 already has Python 2.3 installed.
I followed Mac OS X instructions I found in a thread in this forum, but added in Scott Coursey's header change.
1) Installed Blender in my Applications Folder.
2) Unpacked the exporter scripts to a temporary directory.
3) Created a directory for my custom Blender scripts - "/Scripts/blender_scripts"
4) Copied Dts_Blender.py, Blender_Gui.py and Convert_Sticky.py (and all but DTSPython directory) into"/Scritps/blender_scripts"
5) Changed the header in the file Dts_Blender.py using TextEdit. (see HEADER CHANGE BELOW, thanks Scott)
6) Copied the DTSPython directory to Macintosh HD/Library/Python/2.3 (this is the default location where python is looking for additional libraries).
7) Started Blender.
8) In the botom window/frame select User Preferences.
9) Clicked the -File Paths- button.
10) Change the Scripts: Path to the path you used in step 3
11) Click re-evaluate scripts registration in menus (the button next to the browse button)
12) Save User Prefs (control + U)
HEADER CHANGE
For the menu entries, the Dts_Blender.py in the ZIP file contains the header of:
n 'Torque DTS Exporter'
b 233
g 'Export'
s 'Export' export
s 'Configure' config
t 'Export to Torque (.dts) format.'
Change the block to read:
Name: 'Torque DTS Exporter'
Blender: 233
Group: 'Export'
Submenu: 'Export' export
Submenu: 'Configure' config
Tooltip: 'Export to Torque (.dts) format.'
Thanks for the help all.
#13
12/07/2004 (6:55 pm)
The 2.35b is there, for OSX (downloading it now).
#14
The Torque DTS Export option should appear on the Export menu.. but Nada.
Blender 2.3.5a (Win)
Python 2.3.3
Torque Exporter .85
Any suggestions?
12/13/2004 (6:22 pm)
Installed PY2.3.3, did the whole thing as mentioned above, but when I get to Blender and perform the re-evaluate scripts registration portion ..well .. I know theThe Torque DTS Export option should appear on the Export menu.. but Nada.
Blender 2.3.5a (Win)
Python 2.3.3
Torque Exporter .85
Any suggestions?
#15
12/14/2004 (5:40 am)
The instructions above are Mac X specific, I believe.
#16
Thanks for the response; I discovered the distinction only well after I'd posted. Sorry about that.
On the whole though, it's not terribly far off from the win side.
~Ciao
12/14/2004 (5:56 am)
Court,Thanks for the response; I discovered the distinction only well after I'd posted. Sorry about that.
On the whole though, it's not terribly far off from the win side.
~Ciao
#17
12/14/2004 (5:59 am)
Still, I'd be interested to find out what your solution was. Did you get it working?
#18
Well .. the crazy thing is .. the DTS Exporter shows up in 2.34, but noway in 2.35a (used Py 2.2.2. here before upgrading to 2.3.3).
I can get the geometry into the Torque Editor, but no mapping. Looks like a giant neon yellow block of cheese ! Here's what it's suppsed to look like.
Larger examples at the 3D assets project page if you're interested.
www.cybereye-visioneering.com/adev/
Am hoping some-one a wee bit more DTS experience than I will conjur up a solution.
~
12/14/2004 (6:25 am)
Court,Quote:"Did you get it working?"
Well .. the crazy thing is .. the DTS Exporter shows up in 2.34, but noway in 2.35a (used Py 2.2.2. here before upgrading to 2.3.3).
I can get the geometry into the Torque Editor, but no mapping. Looks like a giant neon yellow block of cheese ! Here's what it's suppsed to look like.
Larger examples at the 3D assets project page if you're interested.www.cybereye-visioneering.com/adev/
Am hoping some-one a wee bit more DTS experience than I will conjur up a solution.
~
Torque Owner Scott Coursey
Yellow Duck Software