addam / Export-Paper-Model-from-Blender

Python addon for creating paper models in Blender (development version)
https://blenderartists.org/t/export-paper-model/476597
406 stars 54 forks source link

Changed dots to periods to fix unicode errors #31

Closed Spuddy closed 11 years ago

addam commented 11 years ago

Okay, although I am sorry that the central dots didn't work. I hoped Blender supports these unicode characters without trouble. What is your system configuration, by the way?

Spuddy commented 11 years ago

I'm still not too sure about blender fully supporting unicode utf-8. Apparently not.

I am running Windows XP SP3, with Intel(R) Pentium(R) 4, CPU 3GHz and 1GB of RAM

The error was something along the lines of:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 0: unexpected end of data

and pointed at the lines which caused the trouble in io_export_paper_model.py. It also pointed at line 294 \2.68\scripts\modules\addon_utils.py:

mod = __import__(module_name)

I am running the portable version of blender (from portableapps.com) but that shouldn't affect it.

I'm happy to do any testing if you need it on this setup. Hope this helps

Spuddy commented 11 years ago

Just quickly, I notice Marcus Schulz has done some work on margins... Is there any chance of that being implemented in a recent version?

addam commented 11 years ago

Thanks for the info. The error seems that everything is OK on your side, but I'll really have to let go the middle dots.

The margins are easy to implement, I'll look into it now. I have time to spend on this script again. Marcus Schulz also coded some options for plotter markings which I don't have a chance to test (none of my friends has a plotter this clever), so I rather just forgot about it.