diff --git a/utils/Modeller/uv_export_svg.py b/utils/Modeller/uv_export_svg.py index a270fe13a..a04701f77 100644 --- a/utils/Modeller/uv_export_svg.py +++ b/utils/Modeller/uv_export_svg.py @@ -11,12 +11,12 @@ __author__ = "Melchior FRANZ < mfranz # aon : at >" __url__ = "http://members.aon.at/mfranz/flightgear/" __version__ = "0.1" __bpydoc__ = """\ -Saves the UV mappings of all selected files to an SVG file. The uv_import_svg.py +Saves the UV mappings of all selected objects to an SVG file. The uv_import_svg.py script can be used to re-import such a file. Each object and each group of adjacent -faces therein will be put into an SVG group. +faces therein will be made a separate SVG group. """ -ID_SEPARATOR = '#' +ID_SEPARATOR = '_____' import Blender, sys @@ -83,7 +83,8 @@ def write_svg(filename): continue unique_meshes[mesh.name] = True - svg.write('\t\n' % (o.name, o.name)) + svg.write('\t\n' % (o.name, o.name)) pool = {} for f in mesh.faces: @@ -128,3 +129,4 @@ active = Blender.Scene.GetCurrent().objects.active (basename, extname) = Blender.sys.splitext(Blender.Get("filename")) filename = Blender.sys.basename(basename) + "-" + active.name + ".svg" Blender.Window.FileSelector(export, "Export to SVG", filename) + diff --git a/utils/Modeller/uv_import_svg.py b/utils/Modeller/uv_import_svg.py index 4d6fd4176..7a1d9cbcc 100755 --- a/utils/Modeller/uv_import_svg.py +++ b/utils/Modeller/uv_import_svg.py @@ -19,7 +19,7 @@ The choice has been made when the file was saved! """ -ID_SEPARATOR = '#' +ID_SEPARATOR = '_____' import Blender, sys, math, re