Exporting and Importing OBJ Files isn't working. #51658

Closed
opened 2017-05-29 19:35:53 +02:00 by David · 11 comments

When I try to Import a OBJ file on the newest version of Blender it wont work.

The top were the file "id" is turns red and it doesn't take as long to load.

When It loads in nothing loads in at all. Just blank I checked way to fix this cant find anything, I went into user preferences to ad-ons I have wave front added. Pleas someone help me!

When I try to Import a OBJ file on the newest version of Blender it wont work. The top were the file "id" is turns red and it doesn't take as long to load. When It loads in nothing loads in at all. Just blank I checked way to fix this cant find anything, I went into user preferences to ad-ons I have wave front added. Pleas someone help me!
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Zydicon

Added subscriber: @Zydicon

Added subscriber: @mont29

Added subscriber: @mont29
Bastien Montagne self-assigned this 2017-05-29 22:54:39 +02:00

Please attach minimal OBJ file demonstrating the issue.

Please attach minimal OBJ file demonstrating the issue.

Added subscriber: @paddygaunt

Added subscriber: @paddygaunt

This might be related (if not please spawn a bug report in the correct place!)
https://blenderartists.org/forum/showthread.php?391401-Addon-Manuel-Bastioni-Lab-turns-Blender-in-a-laboratory-for-3d-humanoids-creation&p=3200418&viewfull=1#post3200418

Manuel posted this obj file reproducing the error
EDIT - specifying "you should also say that the error happens only with Cycles as selected engine and only if the obj has more than one material."

I have reproduced the attribute error below even with a simple object with two polygons and two materials:
-------------------
scripts\addons\io_scene_obj\import_obj.py", line 318, in create_materials
context_mat_wrap.hardness_value_set = 1.0
AttributeError: 'CyclesShaderWrapper' object attribute 'hardness_value_set' is read-only
-------------------
Here is the plain txt of test obj and related mtl:

-------------------
mtllib obj_face.mtl
o Plane
v -1.000000 -1.000000 0.000000
v 1.000000 -1.000000 0.000000
v -1.000000 1.000000 0.000000
v 1.000000 1.000000 0.000000
v 0.000000 -1.000000 0.000000
v 0.000000 1.000000 0.000000
usemtl mat02
s off
f 5 2 4 6
usemtl mat01
f 1 5 6 3
--------------------

--------------------
newmtl mat01
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

newmtl mat02
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
---------------------
This might be related (if not please spawn a bug report in the correct place!) https://blenderartists.org/forum/showthread.php?391401-Addon-Manuel-Bastioni-Lab-turns-Blender-in-a-laboratory-for-3d-humanoids-creation&p=3200418&viewfull=1#post3200418 Manuel posted this obj file reproducing the error EDIT - specifying "you should also say that the error happens only with Cycles as selected engine and only if the obj has more than one material." ``` I have reproduced the attribute error below even with a simple object with two polygons and two materials: ------------------- scripts\addons\io_scene_obj\import_obj.py", line 318, in create_materials context_mat_wrap.hardness_value_set = 1.0 AttributeError: 'CyclesShaderWrapper' object attribute 'hardness_value_set' is read-only ------------------- Here is the plain txt of test obj and related mtl: ------------------- mtllib obj_face.mtl o Plane v -1.000000 -1.000000 0.000000 v 1.000000 -1.000000 0.000000 v -1.000000 1.000000 0.000000 v 1.000000 1.000000 0.000000 v 0.000000 -1.000000 0.000000 v 0.000000 1.000000 0.000000 usemtl mat02 s off f 5 2 4 6 usemtl mat01 f 1 5 6 3 -------------------- -------------------- newmtl mat01 Ns 96.078431 Ka 1.000000 1.000000 1.000000 Kd 0.640000 0.640000 0.640000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2 newmtl mat02 Ns 96.078431 Ka 1.000000 1.000000 1.000000 Kd 0.640000 0.640000 0.640000 Ks 0.500000 0.500000 0.500000 Ke 0.000000 0.000000 0.000000 Ni 1.000000 d 1.000000 illum 2 --------------------- ```
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

hi, confirming there's an issue here, possibly related to the recent materials change

hi, confirming there's an issue here, possibly related to the recent materials change

@BrendonMurphy Confirmed priority is more than enough here, unbreaknow is for absolute critical bugs (those that might generate data corruption, break your machine…).

@BrendonMurphy Confirmed priority is more than enough here, unbreaknow is for absolute critical bugs (those that might generate data corruption, break your machine…).

This issue was referenced by 84baf76f48

This issue was referenced by 84baf76f48e023eafde8d567490b7b0ba901e9fb

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 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#51658
No description provided.