Blender not importing .obj files #94741
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#94741
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: macOS-12.1-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 575X OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.7.101
Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash:
blender/blender@f1cca30557
Short description of error
Other people have reported this kind of bug and have been dismissed out of hand for being newbies who just don't have the needed skills to find the imported object after it's been brought into Blender. Please don't do that. It's true that I am a newbie, but I have sought advice on the community page and the suggestions made there don't help. Furthermore, I have reason to believe that Blender is NOT importing the object or objects in the .obj files I have tried to import. The same files can be imported into Cheetah3d without problem, but not Blender. Isn't that a bug?
Exact steps for others to reproduce the error
[Based on the default startup or an attached .blend file (as simple as possible)]SphereandCubeandSphere.obj
Added subscriber: @johnsmithmd00001
Added subscriber: @scurest
Your .obj file uses carriage return,
\r
, as the newline delimiter instead of the usual\n
or\r\n
. The Python importer opens files in binary mode and Python says "the line terminator is always b'\n' for binary files". It therefore interprets your entire file as a single very long comment line. I think there is a new OBJ importer under way, perhaps it works there. But you can fix the line endings in practically any text editor to get it to import right now.(Btw, you can easily check if any verts were imported at all using the stats in the statusbar.)
"But you can fix the line endings in practically any text editor to get it to import right now."
Thanks for the suggestion, but unfortunately, that's not in my skill set. The only text editor I have is Atom, which I have previously used only to write Python programs, and not very recently. I opened the .obj file in Atom and I don't see "\r" anywhere. Nor do I see any way to identify newline delimiters, however they might appear. Hence, I have no clue how to edit the file as you suggested.
(I also don't know how to find the statusbar, though I think I might be able to figure that one out.)
Oh.
I opened the .obj file in an app called CotEditor. At the bottom of the window was a box that said "CR." The other options were "LF" and "CRLF." I changed the setting to "LF," waited for the file to be rewritten, then closed without saving. And just like that, the file could be imported into Blender.
Not that my problems are over. The file I really want to bring into Blender did not come in intact. But at least something came in. That's progress, I suppose.
Added subscriber: @lichtwerk
Changed status from 'Needs Triage' to: 'Resolved'
So that makes this report Resolved I think.
Please open a new report for this.