Eye Blink

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 01 January 2004   #1
Eye Blink

I would like to do a eye blink control for my set up, but I dont know how to aproach it. So maybe you guys could give me some ideas?

It would be kinda like an automated blink. That could also be used as an eye twich. What I would like is for the eyes to do a 3 frame blink. In wich an attribute in the chanell box will adjust the timing on how far apart the twich wold will animate by the number entered in the chanell box. And another that would adjust the frames in between the blink.

Any ideas?
 
Old 01 January 2004   #2
this is very quick, and simple (some might say dirty..)
"blinkTime" is an attr you add to whatever... thats the interval...
this is for a 3 frame blink, but you get the idea, easy to change....


float $remainder = (frame % `getAttr geo.blinkTime` );

if ($remainder == 1)
blendShape1.weight[0] = 0.5;
else if ($remainder == 2)
blendShape1.weight[0] = 1.0;
else if ($remainder == 3)
blendShape1.weight[0] = 0.5;
else
blendShape1.weight[0] = 0.0;
dShape1.weight[0] = 0.0;
__________________
Make something idiot proof and they'll just build a better idiot
 
Old 01 January 2004   #3
Wow thanks john_homer...

 
Old 01 January 2006   #4
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



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
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 01:14 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.