Trying to build some models that use soya's pickle format:

when I use the blender2soya.py script in blender, it exports a world
data and material data file as expected.

However, when attempting to import the model data, it fails with this trace:

* Soya * Converting worlds/wood_floor.data to Model...
Traceback (most recent call last):
  File "model_tester.py", line 7, in ?
    test_model = soya.Model.get(sys.argv[1])
  File "/usr/lib/python2.4/site-packages/soya/__init__.py", line 283, in get
    return klass._alls.get(filename) or
klass._alls.setdefault(filename, klass.load(filename))
  File "/usr/lib/python2.4/site-packages/soya/__init__.py", line 292, in load
    dirname  = klass._get_directory_for_loading_and_check_export(filename)
  File "/usr/lib/python2.4/site-packages/soya/__init__.py", line 228,
in _get_directory_for_loading_and_check_export
    klass._export(d, filename)
  File "/usr/lib/python2.4/site-packages/soya/__init__.py", line 498, in _export
    model.save()
  File "/usr/lib/python2.4/site-packages/soya/__init__.py", line 315, in save
    data = dumps(self, 1) # Avoid destroying the file if the
serialization causes an error.
  File "/usr/lib/python2.4/site-packages/soya/__init__.py", line 323,
in __reduce_ex__
    return _CObj.__reduce_ex__(self, arg)
  File "/usr/lib/python2.4/site-packages/soya/__init__.py", line 328,
in __reduce__
    return _CObj.__reduce__(self)
  File "base.pyx", line 124, in _soya._CObj.__reduce__
  File "base.pyx", line 117, in _soya._CObj.__getstate__
  File "model.pyx", line 193, in _soya._SimpleModel.__getcstate__
KeyError: 3071590556L
* Soya3D * Quit...


A very similar (keyerror: foo) trace happens when I try the auto
exporter (that just points to blend2soya, right?).


I tried to work arround this by exporting to obj/mtl first within
blender (I tried 3 different export scripts, the results are the same)
resulting trace back when trying to use the soya's auto exporter to
load the obj/mtl files:

* Soya * Converting obj/wood_floor.obj to Model...
* Soya * Converting obj/wood_floor.obj to World...
d 1.000000
Exception exceptions.ValueError: <exceptions.ValueError instance at
0xb721682c> in '_soya._SimpleModel._add_face' ignored
Exception exceptions.ValueError: <exceptions.ValueError instance at
0xb721682c> in '_soya._SimpleModel._add_face' ignored
Exception exceptions.ValueError: <exceptions.ValueError instance at
0xb721682c> in '_soya._SimpleModel._add_face' ignored
Exception exceptions.ValueError: <exceptions.ValueError instance at
0xb721682c> in '_soya._SimpleModel._add_face' ignored
Exception exceptions.ValueError: <exceptions.ValueError instance at
0xb721682c> in '_soya._SimpleModel._add_face' ignored
Exception exceptions.ValueError: <exceptions.ValueError instance at
0xb721682c> in '_soya._SimpleModel._add_face' ignored

not a traceback persay, because the program still runs, just nothing
gets displayed.



I'm using blender version 2.44 from debian unstable.
I tried using 2.35, but blender2soya will not run within it, in
addition to the hassle of having to re-uv my models, and getting
python to work with it, ... yeah...




is there a better version of blender2soya.py?  the one in svn doesn't
seem to do the trick, either.  if not what other options do I have?

Another thought:
I have the models exported to cal3d already, and the work... is it
possible to load a non-animated model from a cal3d file?  This would
actually be preferred for me if I could use one file format for all of
my models.

_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user

Reply via email to