Collada

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

Collada

Postby Sergio » Mon Nov 22, 2010 7:26 pm

Hi all,

For me (actually SVN-1570, Solaris), the MH Collada export looks good, i have my four collada files as well. But at the Blender (2.49) import (dae-1.4), i get :

Traceback (most recent call last):
File "/.blender/scripts/bpymodules/colladaImEx/cstartup.py", line 681, in ButtonEvent
File "/.blender/scripts/bpymodules/colladaImEx/translator.py", line 111, in __init__
File "/.blender/scripts/bpymodules/colladaImEx/translator.py", line 118, in __Import
File "/.blender/scripts/bpymodules/colladaImEx/translator.py", line 298, in Import
File "/.blender/scripts/bpymodules/colladaImEx/collada.py", line 89, in LoadDocumentFromFile
File "/.blender/scripts/bpymodules/colladaImEx/collada.py", line 295, in LoadFromXml
File "/.blender/scripts/bpymodules/colladaImEx/xmlUtils.py", line 70, in ReadDateTime
File "/.blender/scripts/bpymodules/colladaImEx/xmlUtils.py", line 105, in GetDateTime
IndexError: list index out of range

GetDateTime... Solaris related ? My Blender a bit too old ? Or ? Other hand, i can import other Collada files like Google 3D models successfully.

As GetDateTime in my Blender config i have this :

def GetDateTime(xmlvalue):
vals = xmlvalue.split('T')
datestr = vals[0]
timestr = vals[1] <------------------ Line 105
date = datestr.split('-')
time = timestr.split(':')
time[2]=time[2].rstrip('Z')
return datetime(int(date[0]), int(date[1]), int(date[2]),int(time[0]), int(time[1]), int(float(time[2])))


In the MH case, i also tried to import in Blender as dae-1.3 : no error message in the console, but also no model in the scene.


Greatings,

Sergio
Sergio
 
Posts: 25
Joined: Mon Jul 12, 2010 9:54 pm

Re: Collada

Postby joepal » Mon Nov 22, 2010 7:54 pm

Looks like something strange is happening with the date stamp. Maybe it changed format?

Can you print the value of "xmlvalue" above the place where it tries to split the string?
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4626
Joined: Wed Jun 04, 2008 11:20 am

Re: Collada

Postby Sergio » Tue Nov 23, 2010 2:24 pm

Hi Joel,

Since yesterday night, i get no "IndexError: list index out of range", but "ValueError: invalid literal for int():".

I doesn't understand why, assuming that i changed nothing in my manipulations.

Other hand, just now i asked to print xmlvalue, before the split try, and i get :

Tue, 23 Nov 2010 00:15:30 +0000

Maybe the "out of range" is the "+0000" and, yesterday, "Mon" appeared differently ?


Greatings,

Sergio
Sergio
 
Posts: 25
Joined: Mon Jul 12, 2010 9:54 pm

Re: Collada

Postby wulff420 » Sat Dec 18, 2010 10:41 pm

yea thats the problem i have been having and the console message they showed up there is about the one i have been getting too

the collada dae exports from the new versions will not import into blender blender tells me two error messages one says could not import check console the other says python script error check console. the cmd prompt window for blender says index out of bounds or something like that has anyone fixed this issue?

im using blender 2.49, i just like it better even tho it crashes on me alot but i like the interface better


sorry bout that i have a tendency to forget to check otrher pages of threads lol.
wulff420
 
Posts: 11
Joined: Sat Dec 18, 2010 9:04 am


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron