Atomic Blender: IndexError while importing file #101963

Open
opened 2022-10-21 04:51:06 +02:00 by JD Dennison · 9 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: blender/blender@b292cfe5a9
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
when I load an .xyz pointcloud exported from realitycapture it throws a traceback error in line 152 and 462. No matter what settings I use, those two lines.

Exact steps for others to reproduce the error

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2070 SUPER/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15 **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `blender/blender@b292cfe5a9` 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** when I load an .xyz pointcloud exported from realitycapture it throws a traceback error in line 152 and 462. No matter what settings I use, those two lines. **Exact steps for others to reproduce the error** - Import attached file [calaverSparse.xyz](https://archive.blender.org/developer/F13782299/calaverSparse.xyz)
Author

Added subscriber: @jdenn

Added subscriber: @jdenn
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Thanks for the report. Please share the file you're importing

Thanks for the report. Please share the file you're importing
Author

Here's a file that doesn't work.calaverSparse.xyz

Here's a file that doesn't work.[calaverSparse.xyz](https://archive.blender.org/developer/F13782299/calaverSparse.xyz)
Pratik Borhade changed title from the plugin but doesn't seem to work to Atomic Blender: IndexError while importing file 2022-11-11 06:38:02 +01:00
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Added subscriber: @Blendphys

Added subscriber: @Blendphys
Member
cc @Blendphys
Member

Dear JD Dennison (jdenn).

Your XYZ file is not correct: in the first line, you have to write the number of atoms. In your case, you have 50034 atoms! So, you have to writte at the beginning of the into the XYZ file:

50034

 -0.5490704827975722 -9.5495027263312942 21.0009903794627668 86 89 96
4.4353873341184382 -9.8626624410604915 20.2717182210310014 42 37 33
-2.1362118831055446 -8.1744878975496498 22.1938583888169951 29 37 50
4.8626393790767981 -9.5421051650977624 17.2668995228610456 67 57 52
1.3438184482827280 -9.9534677950168948 18.1846599053373161 140 135 132

Comments

  1. Details about the addon can be found here: Link
  2. The add-on can be discussed here: Link There, you find many nice discussions which may help you with the add-on.
  3. Those are quite a lot of atoms! Blender will need some time to load them, please, consider this. May be, you try the first 100 atoms first to see if your structure is well represented in Blender.
  4. Note that there is currently an issue with the NURBS, see here ! If you want to use NURBS then you have to use a Blender version below 3.2.0!

Conclusion: so no bug in the code! ;-)

Dear JD Dennison (jdenn). Your XYZ file is not correct: in the first line, you have to write the number of atoms. In your case, you have 50034 atoms! So, you have to writte at the beginning of the into the XYZ file: ``` 50034 -0.5490704827975722 -9.5495027263312942 21.0009903794627668 86 89 96 4.4353873341184382 -9.8626624410604915 20.2717182210310014 42 37 33 -2.1362118831055446 -8.1744878975496498 22.1938583888169951 29 37 50 4.8626393790767981 -9.5421051650977624 17.2668995228610456 67 57 52 1.3438184482827280 -9.9534677950168948 18.1846599053373161 140 135 132 ``` **Comments** 1. Details about the addon can be found here: [Link ](https://docs.blender.org/manual/en/dev/addons/import_export/mesh_atomic.html) 2. The add-on can be discussed here: [Link ](https://blenderartists.org/t/atomic-blender-pdb-xyz-for-blender-2-8-and-higher/1197801/63) There, you find many nice discussions which may help you with the add-on. 3. Those are quite a lot of atoms! Blender will need some time to load them, please, consider this. May be, you try the first 100 atoms first to see if your structure is well represented in Blender. 4. Note that there is currently an issue with the NURBS, see [here ](https://developer.blender.org/T100706)! If you want to use NURBS then you have to use a Blender version below 3.2.0! Conclusion: so no bug in the code! ;-)
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#101963
No description provided.