PDA

View Full Version : constraints?


kamsvag
08-07-2002, 02:23 PM
How can I constrain on object to a vertice?

I need an object to have an aim-constrain to one or a group of vertices.

alexx
08-07-2002, 02:44 PM
one way would be writing a mel script where you query the translation values of a vertex using the xfrom command and then pass that one to the translation values of a locator..
(the query should look something like this:
$worldPos = `xform -q -ws -t plane.vtx[12]`)

another solution would be:

select the vertices you want to have, and create a cluster on them. parent the cluster under the object and set the envelope value from the cluster to 0. (no double transform then but it keeps on moving with the object).

now you can use the cluster for your aiming.

but mind the deformation order if you have deformations.

cheers

alexx

kamsvag
08-07-2002, 02:51 PM
What I've done is a lippsynch animation. Now I wanna aimconstrain the lower row of teeth to the chin. If I create the cluster it wont follow the blendshape animation.

alexx
08-07-2002, 03:04 PM
i guess usually when you do a lipsync, you dont change the mouth open/close with the blend shapes. you should do that via the bones in the mouth..
(so result is a mix from blendshapes and bone deformation)..

have you had a try with the mel script?
that one should work with blend shape deformation..

cheers

alexx

kamsvag
08-07-2002, 09:09 PM
Thanks for the tip on the MEL-script. I didn't wanna re-animate 4845 frames of lipsync. It all works fine now.

:beer:

CGTalk Moderation
01-13-2006, 01: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.