diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-14 17:26:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-14 17:26:39 +0300 |
commit | f8518a9b26f96a391f20b671331e3365f7f6a69b (patch) | |
tree | 52a6fe57351424a33c6e296418ec708daadb9736 /release/scripts/op | |
parent | 231d29ccce00d746b9666f52d453613c57195e80 (diff) |
UV layout
- set the width of the line to be 1 pixel
- add the object name onto the blendfile name.
Diffstat (limited to 'release/scripts/op')
-rw-r--r-- | release/scripts/op/uv.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py index eedd690a63f..00b65c38088 100644 --- a/release/scripts/op/uv.py +++ b/release/scripts/op/uv.py @@ -106,7 +106,7 @@ class ExportUVLayout(bpy.types.Operator): else: uvs = uv.uv1, uv.uv2, uv.uv3, uv.uv4 - fw('<polygon %s fill-opacity="0.5" stroke="black" stroke-width="1" \n' % fill_settings[faces[i].material_index]) + fw('<polygon %s fill-opacity="0.5" stroke="black" stroke-width="1px" \n' % fill_settings[faces[i].material_index]) fw(' points="') for j, uv in enumerate(uvs): @@ -130,7 +130,7 @@ class ExportUVLayout(bpy.types.Operator): bpy.types.register(ExportUVLayout) def menu_func(self, context): - default_path = bpy.data.filename.replace(".blend", ".svg") + default_path = bpy.data.filename.replace(".blend", "_%s.svg" % bpy.utils.clean_name(getattr(context.object, "name", "none"))) self.layout.operator(ExportUVLayout.bl_idname).path = default_path bpy.types.IMAGE_MT_uvs.append(menu_func) |