Error importing .obj from Photoshop (filename with space) #72148

Closed
opened 2019-12-03 19:21:44 +01:00 by KiJeon · 8 comments

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: blender/blender@26bd5ebd42

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

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.
PhotoshopOBJTest.obj
The .mtl if needed:
PhotoshopOBJTest.mtl

**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: `blender/blender@26bd5ebd42` **Short description of error** Blender throws up an error when trying to import an .obj from Photoshop. ![image.png](https://archive.blender.org/developer/F8187803/image.png) 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. [PhotoshopOBJTest.obj](https://archive.blender.org/developer/F8187805/PhotoshopOBJTest.obj) The .mtl if needed: [PhotoshopOBJTest.mtl](https://archive.blender.org/developer/F8187806/PhotoshopOBJTest.mtl)
Author

Added subscriber: @0o00o0oo

Added subscriber: @0o00o0oo
Member

Added subscriber: @Harley

Added subscriber: @Harley
Member

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.

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 ](http://paulbourke.net/dataformats/mtl/) 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.
Member

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

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

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Member

@Harley: thx for checking!

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

CC @mont29

@Harley: thx for checking! Well, will confirm for now... [while annoying, think this could be supported] CC @mont29
Philipp Oeser changed title from Error importing .obj from Photoshop to Error importing .obj from Photoshop (filename with space) 2019-12-04 11:39:59 +01:00
Philipp Oeser self-assigned this 2019-12-04 12:56:11 +01:00

This issue was referenced by bf89c1eb28

This issue was referenced by bf89c1eb28007fdd491b5a0b7cb3709b84d88b85
Member

Changed status from 'Open' to: 'Resolved'

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