]> git.mxchange.org Git - flightgear.git/commitdiff
use SVG compliant id separator: _____ instead of #
authormfranz <mfranz>
Wed, 5 Mar 2008 18:16:09 +0000 (18:16 +0000)
committermfranz <mfranz>
Wed, 5 Mar 2008 18:16:09 +0000 (18:16 +0000)
utils/Modeller/uv_export_svg.py
utils/Modeller/uv_import_svg.py

index a270fe13add8bd06044eb0065b582dba0b114752..a04701f77b491d57ebb0486e2e416d830be10037 100644 (file)
@@ -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<g style="fill:yellow; stroke:black stroke-width:1px" inkscape:label="%s" id="%s">\n' % (o.name, o.name))
+               svg.write('\t<g style="fill:yellow; stroke:black stroke-width:1px" inkscape:label="%s" ' \
+                               'id="%s">\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)
+
index 4d6fd4176d738b49cef9573d1f93c719983842d2..7a1d9cbcc2988ed5fbe763f6f1dc9e5935c22275 100755 (executable)
@@ -19,7 +19,7 @@ The choice has been made when the file was saved!
 """
 
 
-ID_SEPARATOR = '#'
+ID_SEPARATOR = '_____'
 
 
 import Blender, sys, math, re