Eye Blink

Become a member of the CGSociety

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

Thread Tools Search this Thread Display Modes
  01 January 2004
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?
  01 January 2004
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;
blendShape1.weight[0] = 0.0;
dShape1.weight[0] = 0.0;
Make something idiot proof and they'll just build a better idiot
  01 January 2004
Wow thanks john_homer...

  01 January 2006
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
Society of Digital Artists

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

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

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