...
by Redacted · in Artist Corner · 12/25/2005 (11:08 am) · 66 replies
...
#22
12/29/2005 (11:08 am)
Does the exporter even work with Python 2.4? I had to set 2.3x as the default, because I didn't feel like trying to find out why it was failing in the newer versions of Python.
#23
That's what I am using
12/29/2005 (1:05 pm)
The exporter that is above DOES work w/ Python 2.42.That's what I am using
#25
Apparently Blender 2.4 comes with a more complete (or complete) installation of Python 2.4 in the Blender app directory. This works great with the patched exporter right out of the box.
12/29/2005 (5:58 pm)
BTW, if you use the new Blender 2.4 installer you will not even need a standalone Python on your system. Previously (2.37 with original exporter) you needed a standalone Python 2.3 install for the exporter to function correctly.Apparently Blender 2.4 comes with a more complete (or complete) installation of Python 2.4 in the Blender app directory. This works great with the patched exporter right out of the box.
#26
I installed Blender 2.4 via windows installer (on WinXP), and I'm just using the built-in Python 2.4.
* I unpacked the patched exported from the link above to C:\Torque\Torque_Exporter
* I set PYTHONPATH=C:\Torque\Torque_Exporter
* Start blender, but no "Torque Shape" option on the Export menu
* So I go to the interactive python console in blender, and type: Dts_Blender -- no error, I assume that means it loaded okay
* Still nothing on the Export menu, so in the Scripts window: Scripts --> Update Menus
* Still nothing on the Export menu. Back in the interactive console: type Dts_Blender, output is "module 'Dts_Blender' from 'C:\Torque\Torque_Exporter\Dts_Blender.pyc'"
So it looks to me like the module is loaded, but nothing shows up on the export menu. What am I missing?
12/31/2005 (12:45 am)
I'm new with TGE and Blender (python, too), so I may be missing something obvious here.I installed Blender 2.4 via windows installer (on WinXP), and I'm just using the built-in Python 2.4.
* I unpacked the patched exported from the link above to C:\Torque\Torque_Exporter
* I set PYTHONPATH=C:\Torque\Torque_Exporter
* Start blender, but no "Torque Shape" option on the Export menu
* So I go to the interactive python console in blender, and type: Dts_Blender -- no error, I assume that means it loaded okay
* Still nothing on the Export menu, so in the Scripts window: Scripts --> Update Menus
* Still nothing on the Export menu. Back in the interactive console: type Dts_Blender, output is "module 'Dts_Blender' from 'C:\Torque\Torque_Exporter\Dts_Blender.pyc'"
So it looks to me like the module is loaded, but nothing shows up on the export menu. What am I missing?
#27
Just to be sure, I uninstalled blender 2.4 -- this time also forcefully removing the Blender directories from C:\Program Files and C:\Documents and Settings\\Application Data
After re-installing blender 2.4 cleanly like this, the 'Torque Shape' option appears on the menu -- success!
But if I open up the example.blend and try to export it, I get errors:
Dumping output to file 'C:\Torque\Torque_Exporter\example.log'
Traceback (most recent call last):
File "", line 2551, in ?
File "", line 1858, in export
File "", line 842, in process
File "", line 1609, in process
File "", line 921, in processChild
File "", line 973, in processDetail
AttributeError: attribute not found
And in the example.log:
Torque Exporter 0.87
Using blender, version 240
**************************
Loaded Preferences.
Processing Scene...
Cleaning Preference Keys
Exporting...
> Shape C:\Torque\Torque_Exporter\example.dts
>Collision Level
Mesh Object: Cube.001
Type: Standard
>Detail (size 32)
Mesh Object: Cube
Exception encountered, bailing out.
12/31/2005 (1:28 am)
Looks like I may have it at least partially working...Just to be sure, I uninstalled blender 2.4 -- this time also forcefully removing the Blender directories from C:\Program Files and C:\Documents and Settings\
After re-installing blender 2.4 cleanly like this, the 'Torque Shape' option appears on the menu -- success!
But if I open up the example.blend and try to export it, I get errors:
Dumping output to file 'C:\Torque\Torque_Exporter\example.log'
Traceback (most recent call last):
File "
File "
File "
File "
File "
File "
AttributeError: attribute not found
And in the example.log:
Torque Exporter 0.87
Using blender, version 240
**************************
Loaded Preferences.
Processing Scene...
Cleaning Preference Keys
Exporting...
> Shape C:\Torque\Torque_Exporter\example.dts
>Collision Level
Mesh Object: Cube.001
Type: Standard
>Detail (size 32)
Mesh Object: Cube
Exception encountered, bailing out.
#28
12/31/2005 (5:45 am)
Works like a charm! Many thanks. You are awesome...
#29
12/31/2005 (10:44 am)
...
#30
Jason, thanks for posting the link in the original exporter thread, it got me here.
12/31/2005 (1:35 pm)
Nice work Joseph, I have not touched Blender in weeks or even looked at the latest version but its good to know there is a solution.Jason, thanks for posting the link in the original exporter thread, it got me here.
#31
After replacing the old exporter with a fresh copy of the new patched version, it does appear to work correctly, at least on the example.blend. But why do I have to copy the exporter to .blender/scripts area?
PYTHONPATH=C:\Torque\TorqueExporter
01/02/2006 (10:58 am)
It turns out that I did have a copy of the old exporter files in my .blender/scripts directory (C:\Documents and Settings\jeremy\Application Data\Blender Foundation\Blender\.blender\scripts) -- I copied the exported there because I was never able to get it to load by setting PYTHONPATHAfter replacing the old exporter with a fresh copy of the new patched version, it does appear to work correctly, at least on the example.blend. But why do I have to copy the exporter to .blender/scripts area?
PYTHONPATH=C:\Torque\TorqueExporter
#32
01/02/2006 (1:23 pm)
...
#33
In the .dts this bone have not the correct dimensions (with old exporter and blender 2.37 it's all ok).
In the function "addBlenderChildren" (in dts_blender.py ) the values of tail and head are correct...
Can you help me?
thanks!
01/05/2006 (10:25 am)
Nice work Joseph, but I had some problems exporting an armature with a bone with an ik constraint.In the .dts this bone have not the correct dimensions (with old exporter and blender 2.37 it's all ok).
In the function "addBlenderChildren" (in dts_blender.py ) the values of tail and head are correct...
Can you help me?
thanks!
#34
01/05/2006 (1:38 pm)
...
#35
again in the .dts are visible only 2 bones, the third bone (that one with the ik constraint) is present but not visible ( with length = 0, i suppose ).
i don't understand... where is the code portion that writes those informations?
Thanks for your post , Joseph
01/05/2006 (3:32 pm)
Ok, i've made a new file with 3 bones, the last with targetless IK; exported it without any animations:again in the .dts are visible only 2 bones, the third bone (that one with the ik constraint) is present but not visible ( with length = 0, i suppose ).
i don't understand... where is the code portion that writes those informations?
Thanks for your post , Joseph
#36
01/05/2006 (3:52 pm)
...
#37
01/05/2006 (10:03 pm)
Joseph, have you ever gotten the IK's to work with baking? I tried once, but it flopped. I'll try again soon (I'm going to use your updated exporter to work my game into the RTS pack and would love to get the IK's in).
#38
01/05/2006 (11:04 pm)
...
#39
01/06/2006 (1:25 pm)
@Joseph - I will still host this file and subsequent revisions, just let me know. I could get off my a** and learn python, then I could help you.
#40
01/07/2006 (12:40 am)
...
Torque Owner Redacted