Copy paste vert ID's?

Hi,

I have two meshes that each have the same amount of verts. I would like to find a way to make the vert ID’s the same on both.

Can anybody point me in the right direction?

I am working in Maya BTW.

thanks

The only way I’ve been able to come across is rebuilding the mesh. Now that you bring it up, though, I’d imagine if you had your own logical mesh object (in python or .NET or whatever), you could add methods to re-order IDs. But that is a big ‘if’, since most studios don’t have that (I’d recommending investing in it, though).

http://me.autodesk.jp/wam/maya/docs/Maya2009/API/mesh_reorder_tool_8cpp-example.html

Maya comes with a reorder plugin that needs to be compiled to run though,

cool, thanks for the reply guys. I figured it would not be a simple task.

I thought something like kicking the files out as .objs and importing them back in might cause them to be reordered the same. But that is a rather naive notion I suppose.

Thanks for the input.

Brad, I’m afraid the plug-in will only work on simple meshes. In fact, Alias/Autodesk doesn’t support it so it’s a case of writing your own mesh re-builder as Rob suggested.

From memory, it appeared the plug-in required the selection of three verts as the starting triangle (0,1,2). It would then select, in winding order, the next vert to form the second triangle. All the time it re-uses the current winding order. Essentially, if your mesh isn’t in strips, then the plug-in won’t work - it actually crashed on the mesh I tried, which had all manner of holes cut into it!

Thanks Wai-Hung, now that you mention it I remember it not working very well, I think I was thinking of the “reconstruct mesh tool” that I had last used but that was for maya 5 or something.

This type of tool should really be a nice open source project for someone because everyone struggles with this and it does not seem like there are any easy solutions in any of the modeling software to fix it.

The other option I have seen work is to use a shrinkwrap tool like

http://www.creativecrash.com/maya/downloads/scripts-plugins/modeling/misc/c/xyshrinkwrap/comments#tabs

To take a copy of the matching mesh and fit it to the mesh that has the different vertex ID.

Actually, thinking about this with a clear head (it was rather late when I posted), we use Maya’s Transfer Attributes for situations like this. Though it does require something matching across the two meshes - in most cases we use UVs. Then it’s a case of having Maya matching through UV space and re-positioning the corresponding vertices in world or object space. It works pretty well for us, and has been used for hi-res to lo-res matching too.

oh that is a good idea, position from UV …thanks for sharing that.

Maya comes with a reorder plugin that needs to be compiled to run though,

why do you want the vert IDs to match? Is it for blendshapes?