Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

shrinkwrap deformer question

Anonymous

shrinkwrap deformer question

Anonymous
Not applicable

Hey everybody,

I'm trying to figure out how to snap number of points of one object to closest points of another object.

The only one obvious answer that comes up is using shrinkwrap deformer(maybe there are more ways to do that idon't know).  However i can't make it work as i want. I mean it works in some way but it doesn't move geometry points into the same point location of a target geometry.  

Here are my settings:

shrinkwrapDeforemerSettings_01.png

 

here is a result, as you can see the points are a bit off.

shrinkwrapDeforemerResult.png

maya help says that "Closest" option in "Projection" dropdown window shrinkwraps geometry to the closest point on the surface.

What do i do wrong?

 

Thanks for any help!

 

 

Mike

0 Likes
Reply
1,639 Views
7 Replies
Replies (7)

saihtam
Collaborator
Collaborator

Shrink wrap does exactly what it's supposed to. Shrink a mesh onto the surface of another mesh. It only cares about the surface of a mesh, which is why it's such a powerful tool. You can't get it to snap points together like that.

How similar are the meshes? You could check out transfer attributes. If not a mel/python script to loop over the verts and find the closest vert on the other mesh then move to that position.

Would be good to see your meshes.

 

EDIT: Why does these meshes need to match perfectly? Just curious.

- Mathias
0 Likes

Anonymous
Not applicable

Thank you very much for your help!

It's sad that i can't get it to sanp with this deformer especially when it mentioned in the help topic that i actually can. 

I apologise if i got it wrong.


Well my case where i need it is quite simple. I have got a request from riggers team to symmetrize a geometry. The problem is that geometry consists of two pieces (hands) and those pieces are slightly off. One of the request was not to lose point indexation. So the only way i see for my self is to snap points manually, using shrinkwrap deformer (in xsi it worked perfectly btw) or python mel script.

 

Mike

0 Likes

saihtam
Collaborator
Collaborator
Nope. You're reading it wrong. It will find the closest point on the surface. Not the closest vertex on that mesh. Two very different things.

So the meshes are pretty much exactly the same but with a slightly different shape(but same topology etc)? Then I say use transferAttributes. That should be perfect for this.
- Mathias
0 Likes

Anonymous
Not applicable

ah yes now i understand what's meant by point on the surface... I was probably strongly looking for the word "closest point" and didn't notice the words "on the surface" hahaha sorry

thanks for explanation!

I could not make transfer attribute to snap vertices . It works similar to shrinkwrap.

 

 

0 Likes

saihtam
Collaborator
Collaborator
Did you try the different options? Using component or topology will snap to the verts.
- Mathias
0 Likes

saihtam
Collaborator
Collaborator
Seems I didn't do a proper test here, so I don't think it'll work properly for you. Sorry about that. It could work if you did it by UV though. If you've got good UV's that are the same for both objects then that would do that job. If not then it would be time to do a little script or something. A task that often can go to the rigger.
- Mathias
0 Likes

Anonymous
Not applicable

Yes, i think the script is the best solution for for this kind of task.

 

Thank you!

 

 

0 Likes