DEVILSAN
08-22-2008, 06:36 AM
Hi I am animating the eye lid movement open and close like this
float $time =`currentTime -q`;
//print $time;
float $newTime = $time + $blinkDelay;
float $halfTime = $newTime/2;
//print $halfTime;
// set keyframe at start end of the blink - on 2 atributes
setKeyframe -at "ssw" -at "esw" -t $time -t $newTime makeNurbSphere1;
// close the eye top and bottom
setAttr "makeNurbSphere1.startSweep" 0;
setAttr "makeNurbSphere1.endSweep" 360;
// set 1 keyframe in the middle at the closed state
setKeyframe -at "esw" -at "ssw" -t $halfTime makeNurbSphere1;
but now i want to rotate the eyeball but without keyframing it,
Do i add expression to eyeball.RotateY = $blinkDelay or something..
how do i do ? i think logic based on even driven concept like if something happens i can start for loop to rotate eyeball till some limit.. but i dont understand here how to do..
float $time =`currentTime -q`;
//print $time;
float $newTime = $time + $blinkDelay;
float $halfTime = $newTime/2;
//print $halfTime;
// set keyframe at start end of the blink - on 2 atributes
setKeyframe -at "ssw" -at "esw" -t $time -t $newTime makeNurbSphere1;
// close the eye top and bottom
setAttr "makeNurbSphere1.startSweep" 0;
setAttr "makeNurbSphere1.endSweep" 360;
// set 1 keyframe in the middle at the closed state
setKeyframe -at "esw" -at "ssw" -t $halfTime makeNurbSphere1;
but now i want to rotate the eyeball but without keyframing it,
Do i add expression to eyeball.RotateY = $blinkDelay or something..
how do i do ? i think logic based on even driven concept like if something happens i can start for loop to rotate eyeball till some limit.. but i dont understand here how to do..
