UVcopy

The interface, modeling, 3d editing tools, import/export, feature requests, etc

Moderators: jesterKing, stiv

Post Reply
Erklaerbar
Posts: 0
Joined: Mon May 08, 2006 9:30 pm

UVcopy

Post by Erklaerbar » Tue May 09, 2006 10:34 pm

Hi, this is a crosspost from the blenderartist python forum. I posted there and then realized it might better fit into this forum :oops:


CVS version: bf- Windows (2006/05/08) MSVC (+ Win98+ pydrivers

Hi,
Im pretty new to blender so please excuse if this is posted to the wrong place. I used the new object script "UVcopy" in the objects/scripts menu:

I have a basemesh setup of a character with various vertex groups for both material assignement and skinning purposes. This mesh has no intelligent UVs yet. I do then export his mesh without material groups and without applying modifiers as an "obj". This mesh is imported unaltered into Zbrush and some UVs are assigned and the object is then exported unaltered besides the new UVs to "obj" again. I import on layer two, flip normals first, select the old mesh then and add the new mesh to selection. I use UVcopy and get a success message in the console. But if i test UVs with a simple color texture, the look screwed up They are not the same at all although they have changed on the old mesh.

I think i narrowed it down to either the obj. export script screwing up vertex order or then UVcopy does a mess (which would be sad, as its a incredibly useful feature for me). It could as well be user error, but i spent a whole day retrying all sort of things without success. so i hope that isnt the case.

The blend file can be downloaded here: www.notone.ch/animotion4.blend

, if you render you will see the difference on the face of the character. Any help or thoughts are greatly appreciated!

Thank you
Erklaerbar

an-toni
Posts: 0
Joined: Wed Mar 17, 2004 5:20 pm

Post by an-toni » Thu May 11, 2006 8:41 am

hi, i added the UVcopy script 'cause we needed it at Orange and it seemed safe. just a few lines of code :)

and yes it did work for us, but is (obviously) dependant on the vertex indices.

may look at the blend if have time. also, ppl have coded advanced py routines now for handing copying e.g. shape keys from different meshes to others (iirc cambo implemented finding the corresponding vertices based on mesh geometry) so if we are lucky that code can be used to make this cool too. but dont know yet.

~Toni

Erklaerbar
Posts: 0
Joined: Mon May 08, 2006 9:30 pm

Post by Erklaerbar » Thu May 11, 2006 7:27 pm

thanks for the answer. I figured that the face order is different (someone told me to use the build modifier to check that). So probably no need to check anymore. Must be either import or export script doing this to my meshes. :( Since you managed this to work, i assume you didnt export/reimport the meshes then as obj.?

Aynway thanks, glad to see all this orange stuff makes it into blender. Thats for sure.

(There isnt a obj export script that doesnt change verts order by chance?)
Cheers

Post Reply