Error when importing obj file with texture due to api change #28816

Closed
opened 2011-10-06 14:13:27 +02:00 by Thomas Larsson · 3 comments
Member

%%%Blender 2.49.4 r40808
Api change: 'MeshTextureFace' object has no attribute 'use_image'
The obj.mtl file looks like this. It is probably the map_Kd line that causes trouble.


  • MakeHuman exported MTL
  • www.makehuman.org
    newmtl basic
    Ka 1.0 1.0 1.0
    Kd 1.0 1.0 1.0
    Ks 0.33 0.33 0.52
    illum 5
    Ns 50.0
    map_Kd texture.png

importing obj 'C:\Users\Simulering\Documents\makehuman\exports\dw

      parsing obj file...

0.2710 sec

      loading materials and images...

0.0000 sec

      building geometry...
      verts:15340 faces:13820 materials: 2 smoothgroups:0 ...

Traceback (most recent call last):

File "C:\home\blender\2.59\scripts\addons\io_scene_obj\__init__.py",

in execute

  return import_obj.load(self, context, **keywords)
File "C:\home\blender\2.59\scripts\addons\io_scene_obj\import_obj.py"

19, in load

  dataname,
File "C:\home\blender\2.59\scripts\addons\io_scene_obj\import_obj.py"

2, in create_mesh

  blender_tface.use_image = True

AttributeError: 'MeshTextureFace' object has no attribute 'use_image'
%%%

%%%Blender 2.49.4 r40808 Api change: 'MeshTextureFace' object has no attribute 'use_image' The obj.mtl file looks like this. It is probably the map_Kd line that causes trouble. ------------------ - MakeHuman exported MTL - www.makehuman.org newmtl basic Ka 1.0 1.0 1.0 Kd 1.0 1.0 1.0 Ks 0.33 0.33 0.52 illum 5 Ns 50.0 map_Kd texture.png ----------------- importing obj 'C:\\Users\\Simulering\\Documents\\makehuman\\exports\\dw ``` parsing obj file... ``` 0.2710 sec ``` loading materials and images... ``` 0.0000 sec ``` building geometry... verts:15340 faces:13820 materials: 2 smoothgroups:0 ... ``` Traceback (most recent call last): ``` File "C:\home\blender\2.59\scripts\addons\io_scene_obj\__init__.py", ``` in execute ``` return import_obj.load(self, context, **keywords) File "C:\home\blender\2.59\scripts\addons\io_scene_obj\import_obj.py" ``` 19, in load ``` dataname, File "C:\home\blender\2.59\scripts\addons\io_scene_obj\import_obj.py" ``` 2, in create_mesh ``` blender_tface.use_image = True ``` AttributeError: 'MeshTextureFace' object has no attribute 'use_image' %%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%Should be fixed in addons svn rev2396.
Thanks for the report, closing.%%%

%%%Should be fixed in addons svn rev2396. Thanks for the report, closing.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#28816
No description provided.