From BlenderWiki

Jump to: navigation, search

[edit] UV Image Export

[edit] About

Name Save UV Face Layout... Version 2.5 - 2007
Export the UV face layout of the selected object to a .TGA or .SVG file License GPL
Menu Group: UV Blender 2.32 - 2.46
Author Martin Poirier (theeth)
Link(s) Included in Blender
Executable: uv_export.py Modules:
Data: External Dependencies: None
Additional information: * Included in Blender 2.34 - 2.46

[edit] Introduction

This script exports the UV face layout of the selected mesh object to a TGA image file. Then you can, for example, paint details in this image using an external 2d paint program of your choice and bring it back to be used as a texture for the mesh.

[edit] Support

[edit] Usage

[edit] Instructions

Select the script from either the UV/Image Editor window → UVs menu, or the Scripts window → Scripts → UV menu. A pop-up block will appear with options for you to set. Click 'OK' to choose a name for your file (note: the .tga file extension is always added, so make sure it is not present) and save the image.

[edit] Configuration

The script's options can be set when the script is run. It also stores its configuration in the registry. However, do not alter the options using the Scripts Config Editor script; the full range of values is not supported (the 'size' option will always be clamped to 64).

The pop-up block containing script options.

Size NUMBER512
Size of the exported image in pixels. Minimum: 64, Maximum: 8192
Wire NUMBER1
Size of the wire of the faces (the thickness, in pixels, of the UV edges). Minimum: 1, Maximum: 5
Wrap TOGGLEON
Wrap to image size, scale otherwise. Determines the display of UV edges that lie outside the UV bounds.
All Faces TOGGLEON
Export all or only selected faces.
Ob TOGGLEON
Use object name in filename. If this is set, the object's name will be inserted between the chosen filename and the file extension (filenameobjectname.tga)
Edit* TOGGLEOFF
Edit resulting file in an external program.
Editor* STRINGunset
Path to external editor. If it is left blank, and the Edit option is set, it will prompt you to select a program via the file browser.

 * Options are only available if a full python install exists.

[edit] Notes

  • The script always adds ".tga" to the end of the filename, even if it is already there. Make sure it is not there, or you will get a file ending in .tga.tga .
  • The Editor options only work (indeed, they are only displayed) if you have a full python install.
  • Regarding the Editor, the script seems to only open the editor for you, it does not load the file.
  • It only exports the UVs from the active object; it does not work with multiple objects.

[edit] Known Issues

  • The script always adds ".tga" to the end of the filename, even if it is already there. This can get annoying, especially if you select a .tga file in the file browser that you want the script to replace.
  • The script does not warn you if a file with the given filename already exists.