Export to PLY of models with vertex colors broken #62256

Closed
opened 2019-03-06 13:25:35 +01:00 by Paul Melis · 8 comments

System Information
Operating system: Arch Linux
Graphics card: GTX TITAN

Blender Version

As shown in the splash screen:

Broken: 2.79b (hash 2c0c1f494dcf, 2018-12-12), identifies itself as "2.79.6", this is the Arch package blender-17:2.79.b.git4.2c0c1f49-3

Short description of error

Exporting a model with vertex colors to PLY fails with a Python exception:

Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/addons/io_mesh_ply/__init__.py", line 159, in execute
    return export_ply.save(self, context, **keywords)
  File "/usr/share/blender/2.79/scripts/addons/io_mesh_ply/export_ply.py", line 221, in save
    use_colors=use_colors,
  File "/usr/share/blender/2.79/scripts/addons/io_mesh_ply/export_ply.py", line 171, in save_mesh
    fw(" %u %u %u %u" % v[3])  # col
TypeError: not enough arguments for format string

Exact steps for others to reproduce the error

  1. Start with emty scene
  2. Add a Cube mesh
  3. Add a vertex color layer to the mesh
  4. File -> Export -> PLY
  5. Export
  6. Exception during export
**System Information** Operating system: Arch Linux Graphics card: GTX TITAN **Blender Version** As shown in the splash screen: Broken: 2.79b (hash 2c0c1f494dcf, 2018-12-12), identifies itself as "2.79.6", this is the Arch package blender-17:2.79.b.git4.2c0c1f49-3 **Short description of error** Exporting a model with vertex colors to PLY fails with a Python exception: ``` Traceback (most recent call last): File "/usr/share/blender/2.79/scripts/addons/io_mesh_ply/__init__.py", line 159, in execute return export_ply.save(self, context, **keywords) File "/usr/share/blender/2.79/scripts/addons/io_mesh_ply/export_ply.py", line 221, in save use_colors=use_colors, File "/usr/share/blender/2.79/scripts/addons/io_mesh_ply/export_ply.py", line 171, in save_mesh fw(" %u %u %u %u" % v[3]) # col TypeError: not enough arguments for format string ``` **Exact steps for others to reproduce the error** 1. Start with emty scene 2. Add a Cube mesh 3. Add a vertex color layer to the mesh 4. File -> Export -> PLY 5. Export 6. Exception during export
Author

Added subscriber: @PaulMelis

Added subscriber: @PaulMelis
Author

Sorry, this issue should have been created under the addons section I guess. Anyway to move it after the fact?

Sorry, this issue should have been created under the addons section I guess. Anyway to move it after the fact?
Author

Okay, adding the Addons tag

Okay, adding the Addons tag

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Bastien Montagne was assigned by Sebastian Parborg 2019-03-07 12:20:38 +01:00

Can confirm on 2.79 (git) but not with 2.8.

Can confirm on 2.79 (git) but not with 2.8.

This issue was referenced by 957442534e

This issue was referenced by 957442534ed02a68c1dd510aa7a9d6b2267b095d

Fixed, but better to assign add-ons issues to their maintainers really…

Fixed, but better to assign add-ons issues to their maintainers really…

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#62256
No description provided.