# SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Lounges / Maya Basics & Newbie Lounge / Need help with lattices!!
 Register FAQ Members List Calendar Mark Forums Read

 26-07-2006, 10:21 PM #1 errethakbe Subscriber   Join Date: May 2005 Posts: 240 Thanks: 0 Thanked 1 Time in 1 Post Need help with lattices!! Okay, i've created a driven key for the blinking of my eyelids.., then created a lattice to deform the eyes to the way they should look, and still keep the same blinking ability. the same lattice is deforming the eye and i've got an aim contraint so that i can move it wher ei want it and it maintains the proper shape. The problem is, when i aim the eye, the pupil gets distored by the lattice (see photo) Is there a way to have the pupil follow the eye deformation, but not have it be deformed by the lattice? in otherwords, i want it to move with the eye, and stay on the surface, but i don't want it to be deformed the way that the lattice wants to deform it. i want to maintain the shape of the pupil. any help would be great. Attached Thumbnails
 26-07-2006, 11:33 PM #2 publicFunction Senior Software Developer     Join Date: Jan 2005 Location: Livingston, Scotland Posts: 1,701 Thanks: 1 Thanked 23 Times in 23 Posts As far as I know and understand the lattice deformer. It will deform the geometry, this includes vertices, edges, CV's, and UV's. SO you texture applied will deform also. __________________ Chris (formerly R@nSiD) Twitter When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix Winner SM VFX Challenge 1 3rd Place SM SteamPunk Challenge (May 2007)
 27-07-2006, 02:41 AM #3 errethakbe Subscriber   Join Date: May 2005 Posts: 240 Thanks: 0 Thanked 1 Time in 1 Post the pupil is a separate piece of geomerty...i can change it so it's not affected by the lattice, but then it doesnt follow the contours of the eye...the pupil stands off of the eye and it doesnt look right. So i want the pupil geometry to follow the curve of the deformed eye (i.e. bend to match the shape) but i dont want the pupil to actuall stretch and squash as it is now
 27-07-2006, 09:34 AM #4 blackstrings Registered User     Join Date: Apr 2006 Location: United Sates Posts: 79 Thanks: 0 Thanked 0 Times in 0 Posts hmm...if you are gonna use the pupil as a seperate geometry, i think it may be possible through some adv. mel scripting to have the pupil move along the surface of the white eyeball keeping it's same volume area. Otherwise, have you thought about just painting a black pupil on the white eye ball? since it's just a plain black one colored pupil. __________________ 9 months into Maya...and still learning... 0 experience with any other 3D programs
 27-07-2006, 12:19 PM #5 publicFunction Senior Software Developer     Join Date: Jan 2005 Location: Livingston, Scotland Posts: 1,701 Thanks: 1 Thanked 23 Times in 23 Posts If that geometry is going through the lattice then it will be effected also. Any Geometry passing through a lattice is affected by the deformation. __________________ Chris (formerly R@nSiD) Twitter When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix Winner SM VFX Challenge 1 3rd Place SM SteamPunk Challenge (May 2007)
 27-07-2006, 09:33 PM #6 errethakbe Subscriber   Join Date: May 2005 Posts: 240 Thanks: 0 Thanked 1 Time in 1 Post it won't be 1 color...these are preliminary colors..no texturing has been done yet... Also, the pupil is a separate piece of geometry so i can do things like squash/dilate/etc, but manually using controls i set up. i can have the geometry in the lattice and not be affected by it, if it doesnt have an association with the lattice... actually, i don't want it to an an association with the lattice, just with the surface of the eye....i thought about a separate lattice just for the pupil that matches the curve of the eye...only problem is, i can't get the curve right, and the deformations don't work correctly either. is there a way to create a lattice from a surface, so it has teh same curvature? I cant do it with texturing, because the texture will get distorted with the eye just as the pupil is. i don't know mel scripting, so unfortunately, i can't do that...espcially advanced mel. i'll keep messing with it..if there are any more ideas, please let me know.
 27-07-2006, 10:09 PM #7 errethakbe Subscriber   Join Date: May 2005 Posts: 240 Thanks: 0 Thanked 1 Time in 1 Post i got it. found a script called Rivet that creates a locator that follows along the surface, and i parented the eye to the locator...it's working pretty well.

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off

## \$34

Month-to-month billing

## \$87

Billing every 3 months
 \$29/month Unlimited access to all videos Project files to download Easy to cancel at anytime Save \$5 per month or \$15 in total compared to monthly billing with this package.

## \$288

Billing every 12 months
 \$24/month Unlimited access to all videos Project files to download Easy to cancel at anytime Save \$10 per month or \$120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.