Convert UV maps into paths for Photoshop

Convert UV maps into paths for Photoshop

Share and discuss visual creations and creation practices like texturing, modelling and musing on the meaning of life.

Moderators: MR.D, Moderators

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Convert UV maps into paths for Photoshop

Post 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.
Attachments
obj2illustrator.7z
(1.33 KiB) Downloaded 50 times
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Convert UV maps into paths for Photoshop

Post by Das Bruce »

You know what you have to do now, right?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Convert UV maps into paths for Photoshop

Post by Beherith »

What do I have to then, eh?
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Re: Convert UV maps into paths for Photoshop

Post by Das Bruce »

Make a converter in the opposite direction. :wink:
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Convert UV maps into paths for Photoshop

Post 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...
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Re: Convert UV maps into paths for Photoshop

Post 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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Convert UV maps into paths for Photoshop

Post 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.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Convert UV maps into paths for Photoshop

Post 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.
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: Convert UV maps into paths for Photoshop

Post by Jazcash »

Wow, you're using Fireworks. I thought I was the only one in the world! Best. Application. Ever.
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Convert UV maps into paths for Photoshop

Post 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.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Convert UV maps into paths for Photoshop

Post 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.
Post Reply

Return to “Art & Modelling”