New Keyframe Type: "Jitter"
While doing some animation work over the past few days, I found that it would be useful to be able to tag keyframes as a another type yet: "jitter" for fill-in secondary motion (i.e. blinks/hand-keyed camera shake). Of course, what you really use these for is up to you, but this is one more option when you need it :)
This commit is contained in:
@@ -995,6 +995,13 @@ static short set_keytype_extreme(KeyframeEditData *UNUSED(ked), BezTriple *bezt)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static short set_keytype_jitter(KeyframeEditData *UNUSED(ked), BezTriple *bezt)
|
||||
{
|
||||
if (bezt->f2 & SELECT)
|
||||
BEZKEYTYPE(bezt)= BEZT_KEYTYPE_JITTER;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Set the interpolation type of the selected BezTriples in each F-Curve to the specified one */
|
||||
KeyframeEditFunc ANIM_editkeyframes_keytype(short code)
|
||||
{
|
||||
@@ -1005,6 +1012,9 @@ KeyframeEditFunc ANIM_editkeyframes_keytype(short code)
|
||||
case BEZT_KEYTYPE_EXTREME: /* extreme keyframe */
|
||||
return set_keytype_extreme;
|
||||
|
||||
case BEZT_KEYTYPE_JITTER: /* jitter keyframe */
|
||||
return set_keytype_jitter;
|
||||
|
||||
case BEZT_KEYTYPE_KEYFRAME: /* proper keyframe */
|
||||
default:
|
||||
return set_keytype_keyframe;
|
||||
|
||||
Reference in New Issue
Block a user