diff options
author | Martin Poirier <theeth@yahoo.com> | 2006-06-16 02:27:36 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2006-06-16 02:27:36 +0400 |
commit | 8008783e2770b60070b0f34b639d02a6a8b777e7 (patch) | |
tree | 50f102fb6d8cc1af973abf11113ebf3b7d5048d8 /release/scripts/uv_export.py | |
parent | 1d5136f57ed052348ab238fcd91e69f55a92f38b (diff) |
== UV Export ==
Based on Ed Halley's report.
* Default size is now 512, min is 64, max 8192
* Loading saved params check that Editor path is valid.
Diffstat (limited to 'release/scripts/uv_export.py')
-rw-r--r-- | release/scripts/uv_export.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/uv_export.py b/release/scripts/uv_export.py index 09a8a1dbd08..0685b5fc418 100644 --- a/release/scripts/uv_export.py +++ b/release/scripts/uv_export.py @@ -126,7 +126,9 @@ def ImportConfig(): bWrap.val = conf["WRAP"] bAllFaces.val = conf["ALLFACES"] bEdit.val = conf["EDIT"] - bEditPath.val = conf["EXTERNALEDITOR"] + editor = conf["EXTERNALEDITOR"] + if editor: + bEditPath.val = editor except KeyError: pass @@ -306,7 +308,7 @@ def SetEditorAndExport(f): # ###################################### MAIN SCRIPT BODY ############################### -bSize = Blender.Draw.Create(500) +bSize = Blender.Draw.Create(512) bWSize = Blender.Draw.Create(1) bObFile = Blender.Draw.Create(1) bWrap = Blender.Draw.Create(1) @@ -318,7 +320,7 @@ ImportConfig() Block = [] -Block.append(("Size: ", bSize, 100, 10000, "Size of the exported image")) +Block.append(("Size: ", bSize, 64, 8192, "Size of the exported image")) Block.append(("Wire: ", bWSize, 1, 5, "Size of the wire of the faces")) Block.append(("Wrap", bWrap, "Wrap to image size, scale otherwise")) Block.append(("All Faces", bAllFaces, "Export all or only selected faces")) |