project-navigation
Personal tools

Author Topic: blender import problem  (Read 10383 times)

Offline fiepfrog

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
blender import problem
« on: June 04, 2013, 11:42:59 pm »
Hello,

I would like to edit some weapon models with blender.
I was able to install blender and was also able to install the import/export script io_mesh_md2.py from the git repository. When I try to import any md2 file, e.g. assault.md2, I always get following error:

--------------------------
Traceback (most recent call last):
File "/home/spark/.blender/2.62/scripts/addons/io_mesh_md2.py", line 1066, in execute md2.makeObject()
File "/home/spark/.blender/2.62/scripts/addons/io_mesh_md2.py", line 261, in execute md2.makeObject mesh.tessfaces.add(self.numTris)
Attribute Error: 'Mesh' object has no attribute 'tessfaces'
location:<unknown location>:-1
--------------------------

Can someone tell me what is wrong?

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: blender import problem
« Reply #1 on: June 05, 2013, 04:51:57 am »
Hmm... I've only tested with 2.63, 2.65 and 2.66, it is possible there is some incompatibility, I'll try to see if I can find what's wrong.

Offline fiepfrog

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: blender import problem
« Reply #2 on: June 05, 2013, 07:48:54 am »
Did you write that script?

I think it is blender version 2.63, running on Ubuntu Linux 12.4.
But I'm not sure, I will check both versions this evening.

Let me know if you need more information. Unfortunately I have absolutely no experience with blender or modeling until now.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: blender import problem
« Reply #3 on: June 05, 2013, 09:42:08 am »
your blender settings are stored in a 2.62 (according to your output from above)

Offline fiepfrog

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: blender import problem
« Reply #4 on: June 05, 2013, 05:32:08 pm »
your blender settings are stored in a 2.62 (according to your output from above)
right, blender version 2.62 :)

EDIT: ok, it is either a problem with the blender version or a linux depending problem. I retried on Win7 with blender version 2.67b and it works.
Anyway, on weekends I usually have only my Laptop available, where Linux is running, so I would be happy if I could bring it running there.

(sorry for my fatal english, just ask if my words are unclear!)

EDIT 2: Blender version 2.62 on Win 7 also generate the same error. So thats it. The next step is to try a different version on Linux.
If that is ok I will edit the Wikipage, maybe other people run into similar problems....
« Last Edit: June 05, 2013, 06:06:37 pm by fiepfrog »

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: blender import problem
« Reply #5 on: June 05, 2013, 11:14:59 pm »
I only updated the script from the old (Blender 2.49) version, and I've confirmed that the updated version is indeed incompatible with 2.62, due to API changes; I'm on Linux myself (openSUSE 12.3) so you shouldn't have any problems, but if you do just post them here and I'll see what can I do.

Offline fiepfrog

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: blender import problem
« Reply #6 on: June 06, 2013, 07:37:23 am »
I was able to run version 2.67b on Linux successfully. So there seams to be a minimum version requirement of 2.63.

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: blender import problem
« Reply #7 on: June 07, 2013, 03:41:51 am »
I've added to the wiki a mention that the scripts are for Blender 2.63+ now: Modelling/Blender

Offline fiepfrog

  • Cannon Fodder
  • **
  • Posts: 7
    • View Profile
Re: blender import problem
« Reply #8 on: June 07, 2013, 07:17:58 pm »
Thanks, thats great!

... ähem... you couldn't sleep this night, right? o_O

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: blender import problem
« Reply #9 on: June 07, 2013, 08:06:44 pm »
He, he, different time zones, it wasn't that late here ;)

Offline AntJam

  • Rookie
  • ***
  • Posts: 91
    • View Profile
Re: blender import problem
« Reply #10 on: July 05, 2013, 01:22:27 pm »
It seems that the script is only importing the first frame. Tried in several versions of blender 2.63+ (both 64 and 32 bit on Vista64 machine) ,  I think it might apply to the exporter too although maybe I'm doing something wrong. This isnt urgent (I dont have loads of cool content waiting to amaze and astound unfortunately) so if you get the time have a peek.

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: blender import problem
« Reply #11 on: July 06, 2013, 12:48:03 am »
Just to be sure, did you check the 'Import animation' option (left side)? Same for the exporter (but called Export animation oc)

Offline AntJam

  • Rookie
  • ***
  • Posts: 91
    • View Profile
Re: blender import problem
« Reply #12 on: July 06, 2013, 01:13:12 pm »
 :-[  ok see now I feel like a COMPLETE numpty...never even noticed that little check box....DOH!!
    Thanks for clearing that little nugget of confusion up (my only consolation is that some other doughnut might be saved the embarrassment of making the same error)  ;)

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: blender import problem
« Reply #13 on: July 09, 2013, 04:48:42 am »
Well, it isn't very obvious, but maybe that option is pointless for the importer? For the exporter it keeps you from accidentally exporting the 250 frames that Blender adds by default when all you wanted was a static object, but for the importer it could be dropped, what people think?

Offline AntJam

  • Rookie
  • ***
  • Posts: 91
    • View Profile
Re: blender import problem
« Reply #14 on: July 09, 2013, 12:36:10 pm »
Maybe if the box was checked by default then anyone finding a use to load a single frame (maybe a long animation and they just want to check/adjust the skin) still can simply by unchecking it.