Shop Forum More Submit  Join Login
UV Map Reader Script for Paint Shop Pro by MorganRLewis UV Map Reader Script for Paint Shop Pro by MorganRLewis
Free for commercial or non-commercial use.
These are not to be redistributed or sold without my express written permission.
You may, however, look at the code in order to learn from it to write your own scripts.

Sure, there are plenty of UV readers out there, but I wanted a challenge, and I also have sometimes had reason to want to cut out the middle man when working with textures.

This script allows PSP to read an .OBJ file and display its UV Map, either as a set of vector objects or as a set of layers. Each material group gets its own vector object or layer, as appropriate. Additionally, the user has the options of displaying only selected material groups and having each material group display in a different color from the rest. If drawing in raster mode in multicolor, the user can also have the layers automatically be highlighted with that material group's assigned color.

The UV Map can be loaded in at any desired resolution. A new image will be created for the UV Map.

The script must be installed to your "My PSP Files/Scripts-Trusted" directory in order to run.
Full instructions for use can be found in the README file in the zip.
This script was created for Paint Shop Pro X3. It should work in newer versions, and probably will work in earlier versions as well.

Known Issue: Due to a bug in PSP, there are occasions when a particularly complex vector object might wind up with a "smear" effect ( as seen here: ). In these instances, rendering in raster mode is recommended, although be aware it will take longer.

(Incidentally, the uv map in the preview image is for my Shatter Vase object.)
Scotsprincess2 Featured By Owner Apr 4, 2017  Hobbyist General Artist
I tried your script on PSP X9 but I keep getting this error message:
 Executing RunScript
Executing GetString
Traceback (most recent call last):
  File "<string>", line 40, in Do
IOError: [Errno 2] No such file or directory: u'C:/New Objects/.obj'

Script 'ReadUVMap' has completed with an error.
Can you tell me how to fix this?
MorganRLewis Featured By Owner Apr 4, 2017  Hobbyist Digital Artist
When you run the script, a dialog box will come up asking what object you want to read the UV map for. It will have the directory "C:/New Objects/" by default, but you can change this. You must specify an .OBJ file at this point for the script to work. For example, if you have a file named Lamp.obj under C:/New Objects/, then you would enter "C:/New Objects/Lamp.obj"; if you have a file named Brick.obj in a folder named "Stuff" and a subfolder named "Bob", you would type "C:/Stuff/Bob/Brick.obj".
Akarakak Featured By Owner Feb 29, 2016  Hobbyist Digital Artist
Many thanks
Add a Comment:


Submitted on
July 28, 2014
File Size
20.9 KB