Page 1 of 1

Convert UV maps into paths for Photoshop

Posted: 04 May 2010, 08:52
by Beherith
I made a tool that can convert any .obj file's UV map into paths (vector masks) . It will outline each face on a document of your specified size, so you can then texture the faces easily. It exports an Adobe Illustrator file. Most graphics software can read then, and then can even take unions of paths, which will result in a single outline for each UV fragment.

Image

Makes for some easy rapid texturing with the illustration software of your choice.

Source:
http://pastebin.com/6Pm2HKBV

Oh, you need python 2.6 installed. Then take the source code, and paste it into a text file with a .py extension.
Make sure to change the object file name and the sizes to your info.
Double click on .py file (make sure the .obj file is next to it) and it will net you an .ai file.

Re: Convert UV maps into paths for Photoshop

Posted: 04 May 2010, 09:20
by Das Bruce
You know what you have to do now, right?

Re: Convert UV maps into paths for Photoshop

Posted: 04 May 2010, 09:24
by Beherith
What do I have to then, eh?

Re: Convert UV maps into paths for Photoshop

Posted: 04 May 2010, 09:27
by Das Bruce
Make a converter in the opposite direction. :wink:

Re: Convert UV maps into paths for Photoshop

Posted: 04 May 2010, 09:29
by Beherith
The opposite does not make sense :( as there is no unique mapping of 2d space to 3d space, especially without vertex position information...

Re: Convert UV maps into paths for Photoshop

Posted: 04 May 2010, 09:33
by Guessmyname
Um... sorry, how do we use this? As in, install it. I have no idea what to do with the source you linked to. This is something I've wanted for ages.

Re: Convert UV maps into paths for Photoshop

Posted: 04 May 2010, 09:37
by Beherith
Oh, you need python 2.6 installed. Then take the source code, and paste it into a text file with a .py extension.
Make sure to change the object file name and the sizes to your info.
Double click on .py file (make sure the .obj file is next to it) and it will net you an .ai file.

I just made my first proper model, and was surprised such a tool has not existed (or i have not known about it), so i spliced the UV data from obj files (chosen cause it was plain text) into illustrator file (also plain text, supported by all adobe apps)

Edit: It has come to my attention that this kind of export is possible from Maya.

Re: Convert UV maps into paths for Photoshop

Posted: 05 May 2010, 08:00
by rattle
Guessmyname wrote:Um... sorry, how do we use this? As in, install it. I have no idea what to do with the source you linked to. This is something I've wanted for ages.
Texporter plugin for 3ds max does the same, except that it outputs a PSD file. I'd suggest killing off all overlapping UVs before using either tool.

Re: Convert UV maps into paths for Photoshop

Posted: 05 May 2010, 08:26
by Jazcash
Wow, you're using Fireworks. I thought I was the only one in the world! Best. Application. Ever.

Re: Convert UV maps into paths for Photoshop

Posted: 20 May 2010, 05:32
by MidKnight
Could you make a Blender plugin version of this, please?
Jazcash wrote:Wow, you're using Fireworks. I thought I was the only one in the world! Best. Application. Ever.
Kaiser uses it, too.

Re: Convert UV maps into paths for Photoshop

Posted: 20 May 2010, 09:55
by Beherith
Im sorry, but I heard blender and max already have their own plugins for this. This is just a tiny script. And its very easy to use.