Maniphest T72148

Error importing .obj from Photoshop (filename with space)
Closed, Resolved

Assigned To
Philipp Oeser (lichtwerk)
Authored By
KiJeon (0o00o0oo)
Dec 3 2019, 7:21 PM
Tags
  • Add-ons (Community)
Subscribers
Bastien Montagne (mont29)
Harley Acheson (harley)
KiJeon (0o00o0oo)
Philipp Oeser (lichtwerk)

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: rB26bd5ebd42e3

Short description of error
Blender throws up an error when trying to import an .obj from Photoshop.

However, the same .obj seems to open up fine in https://3dviewer.net/, so it doesn't look like the .obj is the problem.

Exact steps for others to reproduce the error
Import the attached .obj to Blender.


The .mtl if needed:

Revisions and Commits

rBA Blender Add-ons
D6358

Event Timeline

KiJeon (0o00o0oo) created this task.Dec 3 2019, 7:21 PM
Harley Acheson (harley) added a subscriber: Harley Acheson (harley).Dec 3 2019, 9:34 PM

One thing that jumps out is that there are filenames with spaces in there, like the following:
map_Kd -s 0.148957 0.184257 1.0 -o 0.435157 0.426390 1.0 Layer 1.psd

From the spec this line is map_Kd -options args filename. So the issue here is that the filename param contains a space in it. The specification is not clear about how to deal with spaces in file names. But the line looks otherwise okay. The -o option takes just three arguments

I have no idea how to deal with this issue, just adding information here.

Robert Guetzkow (rjg) added a project: Add-ons (Community).Dec 3 2019, 10:59 PM
Harley Acheson (harley) added a comment.Dec 4 2019, 12:20 AM

This issue was breifly mentioned in a comment on this ticket:
https://developer.blender.org/T67266#728432

Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 50.Dec 4 2019, 11:39 AM
Philipp Oeser (lichtwerk) removed a project: BF Blender.
Philipp Oeser (lichtwerk) added subscribers: Bastien Montagne (mont29), Philipp Oeser (lichtwerk).

@Harley Acheson (harley): thx for checking!

Well, will confirm for now... [while annoying, think this could be supported]

CC @Bastien Montagne (mont29)

Philipp Oeser (lichtwerk) renamed this task from Error importing .obj from Photoshop to Error importing .obj from Photoshop (filename with space).Dec 4 2019, 11:39 AM
Philipp Oeser (lichtwerk) claimed this task.Dec 4 2019, 12:56 PM
Philipp Oeser (lichtwerk) changed the task status from Unknown Status to Resolved by committing rBAbf89c1eb2800: Fix T72148: OBJ import could fail with spaces in filenames.Dec 16 2019, 12:53 PM
Philipp Oeser (lichtwerk) added a commit: rBAbf89c1eb2800: Fix T72148: OBJ import could fail with spaces in filenames.