Tuesday, September 1, 2015

Maya script for snapping vertices and aligning normals.

Hey everybody,

I would like to share with you a script for removing a seam between meshes. It closes gaps between meshes and aligns normals to make seam invisible. We use it in "Skyforge" for hiding a seam between the neck and the head of a character.


How it works:
  • Select vertices or edges on the first mesh and press "Ref" button. Script will store your selection as a "reference group".
  • Select vertices or edges on the second mesh
  • Now if you press "Snap" button each vertex in the selection will be snapped to the nearest in the reference group
  • If you press "AR" button (Align with Reference), normal in the each vertex of selection will be aligned with the normal in the nearest reference vertex.
  • If you press "AA" button (Align with Average), normal in the each vertex will be set to average of current normal and normal of the nearest reference vertex.
Look at the video to see how it works.





Feel free to ask, if you have any question.

1 comment:

  1. very very useful.
    It is exactly what I was looking for.
    Thank you very much
    god bless us

    ReplyDelete