Blink eye random animation

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 05 May 2003   #1
Blink eye random animation

Hello,
I've a great idea. I've two blend shapes one with the eyes opened, another one with the eyes closed.
With an expression, I want randomly make the eye closed during 5 frames... And then reopen the eyes (sure)!
How to make randomly set the closed eyes blend shape to 1 during some frames (here is my pb)!

1001 thanks.
 
Old 05 May 2003   #2
sorry.. unless this is for background characters, having random blinks on your guys is definitely the wrong way to go. Blinking adds SO much to a character.. I can't imagine not wanting to animate this by hand.

BUT.. if you're desparate.. you can make the expression a sin wave or something like that..

$currentState = lefteye.blink;
global int $startFrame;
if ($currentState == 0)
{
// the eye is open.. do a random value check and see if we should start closing it.
$rand = rand(0,1);
if ($rand >= .9)
{
// time to start closing the eye.. set the startframe
$startFrame = frame;
lefteye.blink = .1;
}
}
else
{
// we're in a blink now
$currentFrame = frame;

// this is super sloppy.. you can make it much better..
$frameDif = $currentFrame - $startFrame;
if ($frameDif == 1)
lefteye.blink = .4;
if ($frameDif == 2)
lefteyeBlink = 1;
if ($frameDif == 3)
lefteyeBlink = .9;
if ($frameDif == 4)
lefteyeBlink = .5;
if ($frameDif == 5)
lefteyeBlink = .1;
if ($frameDif == 6)
lefteyeBlink = 0;

}


haven't actually checked to see if it'd work, but give it a shot.. ya never know.
-jason
__________________
jason schleifer
Animator - http://jasonschleifer.com/
Co-Founder - http://www.nimblecollective.com

Last edited by jschleifer : 05 May 2003 at 01:31 AM.
 
Old 05 May 2003   #3
Oh thanks I will study it!
Sorry for my english. The word "blink" means for me "refresh eyes". Sure, I don't want use script to animate a one eye blink
 
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 03:04 AM.


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