PDA

View Full Version : constrain button on shirt!


jackkhouri
03-04-2003, 06:01 PM
hey

In Maya, How can I constrain the position of a geometry (polygone) onto a Cv point of another geometry(polygone).

Example: I want to constrain a button (obj) on the cv of a shirt so when i animated the shirt with bones, the buttons follow!

Can you point constrain from component to object?

or is there a node I can use?

or expsression?

anything please, thanks!

sp0rk3d
03-04-2003, 09:10 PM
one thing that i have done is this, (artist method, nt td method)
select the vert/cv where you want the button....
then go into the dynamics menus.....
Particles > Emit form Object....
that makes the emitter node "Stick" on the vert/cv ....
now all you have to do is make a button with a centerpivot where behind the button and point constrain to the emmiter and tangent constrain to the shirt...

hope that helps.. :)

jackkhouri
03-04-2003, 11:32 PM
Very Cool, never thaught of that tanks.

But I ask my boss/professor today and here is his solution...

in the Expression editor type:

float $pt[] = `clothes.vtx[396]`;

Button.translateX = $pt[0];
Button.translateY = $pt[1];
Button.translateZ = $pt[2];

It looks to work well! But can anyone think of a problem it could generate???

anyway thanks a lot 'sp0rk3d' for your feedback

sharing knowledge is the alltime hie!

later jack

MDuffy
03-05-2003, 06:03 PM
Jack,

You'll still need to tangent constrain the button to the surface because your expression method there won't adjust the rotation of the object as the underlying surface moves.

Later,
Michael Duffy
mduffy@ionet.net

CGTalk Moderation
01-14-2006, 02:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.