A few days ago I mentioned a new blender plugin script uv_pack.py,
which helps with packing UV maps on a square. Now I've written two
more plugins, one that exports UV maps to an SVG file, and one to
import such an SVG file again. This allows to do a lot of work
on the maps in an external SVG editor like Inkscape. This is a
very convenient way around Blender's rather clumsy UV editor. In
Inkscape one can move the maps, rotate, scale them, and can manually
pack them much more tightly, and what is even more important,
logically. (Yes, Blender comes with an UV->SVG and ->TGA exporter
already. Ours doesn't do TGA, but writes much better SVG. :-) All
plugins are in ./utils/Modeller/:

uv_pack.py:
  Takes the uv mappings of all selected objects and packs them
  efficiently on one, preferably empty texture, while underlaying
  the area with a random color. This can be used as a first step
  before doing the fine adjustment in an SVG editor.

uv_export_svg.py:
  Exports the uv mappings of all selected objects to an SVG file
  with appropriate grouping of objects and groups of adjacent
  faces within an object.

uv_import_svg.py:
  Imports an SVG file as written by uv_export_svg and updates
  all UV coordinates in Blender, independent of which objects
  are selected. (Remove objects in the external editor or remove
  them from the SVG file if you don't want their coordinates
  updated.)

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to