Atomic Blender: Import xyz impossible #94292

Closed
opened 2021-12-21 10:20:25 +01:00 by Tim Kühne · 14 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Intel(R) HD Graphics 530 Intel 4.5.0 - Build 27.20.100.8681

Blender Version
Broken: version: 2.93.6, branch: master, commit date: 2021-11-16 14:54, hash: blender/blender@c842a90e2f
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Atomic Blender PDB/XYZ (1, 8)
Author: Clemens Barth

Short description of error
I tried to open a molecule exported by chemsketch, it didnt work, I checked the wikipedia xyz file documentation and the openbabel, made a 3-atom test file and its anreadable with a bug, both file and bug report are attached.

Exact steps for others to reproduce the error

  • Open default scene
  • Switch to edit mode
  • load the attached file with atomic blender xyz import

Test File:
Test.xyz
Blender_xyz_import_bug.png

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Intel(R) HD Graphics 530 Intel 4.5.0 - Build 27.20.100.8681 **Blender Version** Broken: version: 2.93.6, branch: master, commit date: 2021-11-16 14:54, hash: `blender/blender@c842a90e2f` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Atomic Blender PDB/XYZ (1, 8) Author: Clemens Barth **Short description of error** I tried to open a molecule exported by chemsketch, it didnt work, I checked the wikipedia xyz file documentation and the openbabel, made a 3-atom test file and its anreadable with a bug, both file and bug report are attached. **Exact steps for others to reproduce the error** - Open default scene - Switch to edit mode - load the attached file with atomic blender xyz import Test File: [Test.xyz](https://archive.blender.org/developer/F12769385/Test.xyz) ![Blender_xyz_import_bug.png](https://archive.blender.org/developer/F12769381/Blender_xyz_import_bug.png)
Author

Added subscriber: @Shadowbeast

Added subscriber: @Shadowbeast
Author
![Blender_xyz_import_bug.png](https://archive.blender.org/developer/F12769381/Blender_xyz_import_bug.png) [Test.xyz](https://archive.blender.org/developer/F12769385/Test.xyz)
Author

I'm sorry for the quite technical bug report, the form to be filled somewhat led me to the result above.
However, I'm new to blender and tried to prevent doing stupid beginner's mistakes, but can't promise success.
In the end I only want a nice image and an stl file for my molecule so I can 3D-print it.
I'd really appreciate help from you

I'm sorry for the quite technical bug report, the form to be filled somewhat led me to the result above. However, I'm new to blender and tried to prevent doing stupid beginner's mistakes, but can't promise success. In the end I only want a nice image and an stl file for my molecule so I can 3D-print it. I'd really appreciate help from you

Added subscriber: @scurest

Added subscriber: @scurest

I can reproduce if I attempt to import while in Edit mode. If in Object mode, it works fine, so for now make sure you're in Object mode before you import. Could be fixed by having the addon switch to Object mode at the beginning.

I can reproduce if I attempt to import while in Edit mode. If in Object mode, it works fine, so for now make sure you're in Object mode before you import. Could be fixed by having the addon switch to Object mode at the beginning.
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Added subscriber: @Blendphys

Added subscriber: @Blendphys
Member
cc @Blendphys
Member

Scurest (scurest) is absolutely right: the user has to be in the 'Object mode' and not in the 'Edit mode'. I will see the next days how to have the addon switch to 'Object mode' at the beginning of the import.

Scurest (scurest) is absolutely right: the user has to be in the 'Object mode' and not in the 'Edit mode'. I will see the next days how to have the addon switch to 'Object mode' at the beginning of the import.
Member

Today, I changed the code such that the user is now in the 'OBJECT' mode, independent on what she/he has chosen before.
See changes: link

Today, I changed the code such that the user is now in the 'OBJECT' mode, independent on what she/he has chosen before. See changes: [link ](https://developer.blender.org/rBA2829c040f488)
Author

Thank you very much, this was of course a beginner's problem, but none where you can by thinking find the solution.
I hope it makes usage easier for others!
Thanks again for the quick replies and the "real fix" :-)

Thank you very much, this was of course a beginner's problem, but none where you can by thinking find the solution. I hope it makes usage easier for others! Thanks again for the quick replies and the "real fix" :-)
Member

Tim, you are welcome, np. For any questions and problems, just post, may be also here: Blenderartists . And sorry for the late replies and coding ... ;-)

PS: Since I have the rights ... I marked the thread as 'solved'.

Tim, you are welcome, np. For any questions and problems, just post, may be also here: [Blenderartists ](https://blenderartists.org/t/atomic-blender-pdb-xyz-for-blender-2-8-and-higher/1197801). And sorry for the late replies and coding ... ;-) PS: Since I have the rights ... I marked the thread as 'solved'.
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' 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#94292
No description provided.