FORUMS: list search recent posts

Interpolating between Shape/Mask Paths

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Aaron Babcock
Interpolating between Shape/Mask Paths
on Feb 23, 2012 at 3:01:18 am

Hi,

At 1:48 in this video, , this animator has the character's face moving horizontally by animating a mask. Looks pretty easy to do.

What I'm wondering, is whether it's possible to have a character animated in this style move their head both horizontally and vertically at the same time. So, that would be two expressions sliders (vertical position and horizontal position) and 6-9 base shapes (up and center, center and center, down and center, up and turned, center and turned, down and turned, and maybe a few pictures in between). But to do that, After Effects would need to be able to interpolate between multiple mask/shape paths at once.

I doubt that AE has this feature built into it (though if it did, that'd be awesome), so I'm wondering if that can be done with expressions. For example, I know it's possible to write an expression that will interpolate a layer's position with the following code:

val1 = transform.position.key(1);
val2 = transform.position.key(2);
val3 = transform.position.key(3);

mX = val1[0] + (val2[0] - val1[0])*effect("Left-Right")("Slider") + (val3[0] - val1[0])*effect("Down-Up")("Slider");
mY = val1[1] + (val2[1] - val1[1])*effect("Left-Right")("Slider") + (val3[1] - val1[1])*effect("Down-Up")("Slider");

[mX, mY];

But can a similar approach be taken to mix together paths? Thanks,

--Saib

val1 = transform.position.key(1);
val2 = transform.position.key(2);
val3 = transform.position.key(3);

mX = val1[0] + (val2[0] - val1[0])*effect("Left-Right")("Slider") + (val3[0] - val1[0])*effect("Down-Up")("Slider");
mY = val1[1] + (val2[1] - val1[1])*effect("Left-Right")("Slider") + (val3[1] - val1[1])*effect("Down-Up")("Slider");

[mX, mY];


Return to posts index


Dan Ebberts
Re: Interpolating between Shape/Mask Paths
on Feb 23, 2012 at 4:10:55 am

I don't think that's going to work. I think the closet you could come would be to keyframe a bunch of different mask transitions and then interpolate between two keyframes using valueAtTime().


Dan



Return to posts index

Aaron Babcock
Re: Interpolating between Shape/Mask Paths
on Feb 24, 2012 at 1:49:28 pm

I was afraid of that. Thanks for your help.

--Saib


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]