Author Topic: Blender to DTS  (Read 657 times)

When I try to export the file to Torque Shape it says "Python Script Error: Check Console"
So I open up console and this is what it says
Code: [Select]
5/12/09 3:37:02 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378] SyntaxError: invalid syntax
5/12/09 3:38:38 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378] Traceback (most recent call last):
5/12/09 3:38:38 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378]   File "<string>", line 1, in ?
5/12/09 3:38:38 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378]   File "/Applications/blender/blender.app/Contents/MacOS/.blender/scripts/Dts_Blender.py", line 43, in ?
5/12/09 3:38:38 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378]     from DtsSceneInfo import *
5/12/09 3:38:38 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378]   File "/Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DtsSceneInfo.py", line 1140
5/12/09 3:38:38 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378]     thisLevel.sort(lambda x,y: cmp(x.dtsObjName if x.dtsObjName != None else x.dtsNodeName, y.dtsObjName if y.dtsObjName != None else y.dtsNodeName))
5/12/09 3:38:38 PM [0x0-0x4eb4eb].org.blenderfoundation.blender[9378]                             
What am I doing wrong?

Wow, does anyone know! Did I install the exporter wrong, I just opened up the script like it told me to.

Please, Can anyone help me!

do you have the version of python for your blender. (sorry if made no sence)

say you have blender 248.1, you need python 2.5.2.

do you have the version of python for your blender. (sorry if made no sence)

say you have blender 248.1, you need python 2.5.2.


So I would just drag the 2.5.2 file into blender? Or is there an install process?

EDIT: Tried just putting the Python file in blender file and it still had an error even when I reinstalled the DTS exporter script

Code: [Select]
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] /Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DTSPython/Dts_Shape.py:75: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   ReflectanceMap    = 0x80000000
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] /Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DTSPython/Dts_Shape.py:76: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   AuxiliaryMask     = 0xF0000000
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] /Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DTSPython/Dts_Mesh.py:46: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   Fan          = 0x80000000 # may not be supported in the engine?
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] /Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DTSPython/Dts_Mesh.py:47: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   TypeMask     = 0xC0000000
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] /Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DTSPython/Dts_Mesh.py:82: FutureWarning: hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   Billboard = 0x80000000  # Mesh always faces player
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] /Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DTSPython/Dts_Shape.py:282: FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   StateOn = 1 << 31
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] Compiled with Python version 2.3.5.
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] Checking for installed Python... got it!
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] Traceback (most recent call last):
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   File "<string>", line 1, in ?
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   File "/Applications/blender/blender.app/Contents/MacOS/.blender/scripts/Dts_Blender.py", line 42, in ?
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]     from DtsPrefs import *
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   File "/Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DtsPrefs.py", line 25, in ?
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]     from DtsSceneInfo import *
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]   File "/Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DtsSceneInfo.py", line 1140
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]     thisLevel.sort(lambda x,y: cmp(x.dtsObjName if x.dtsObjName != None else x.dtsNodeName, y.dtsObjName if y.dtsObjName != None else y.dtsNodeName))
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139]                                                  ^
5/17/09 10:11:30 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] SyntaxError: invalid syntax
5/17/09 10:13:13 AM [0x0-0x9c09c].org.blenderfoundation.blender[1139] Blender quit
5/17/09 10:14:30 AM [0x0-0xa00a0].org.blenderfoundation.blender[1149] /Applications/blender/blender.app/Contents/MacOS/.blender/scripts/DTSPython/Dts_Shape.py:282: FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up
5/17/09 10:14:30 AM [0x0-0xa00a0].org.blenderfoundation.blender[1149]   StateOn = 1 << 31
« Last Edit: May 17, 2009, 01:16:20 PM by CrazyGoodDude »

You don't put python inside blender! It's its own program.