Using mask boundry box as a reference
Posted: November 22nd, 2007, 3:34 am
Hello all!
First of all, i was inspireed by this expression; hxxp://www.motionscript.com/expressions-lab-ae ... lines.html
Now what I am after is, to use an animated Mask instead of the layer.
I have heard it many times, this is slightly impossible to do.
But after some Trial and Error-phases i realized this;
A Mask equals a position path.
When you have a rectangle mask, make a keyframe.
Whenever you copy this keyframe into another layers position property, you will notice 5 keyframes. `The first Keyframe is the position of the UpperLeft Vertice from your mask. the 2nd is the lowerleft position, the 3rd the lowerRight, the4th the upperright. The 5th keyframe is kind of useless.. its the connection between the 4th and 1st keyframe.
Lets say, this layer (with the 5 keyframes) we will name; keyframeLayer.
anyway.. I made 4 other solids;
UpperLeft: Position should equal the 1st keyframe from keyframeLayer.
LowerLeft: ,, ,, ,, ,, 2nd keyframe from keyframeLayer
LowerRight:,, ,, ,, ,, 3rd keyframe from keyframeLayer
UpperRight:,, ,, ,, ,, 4th keyframe from keyframeLayer
Is there an expression wich copies a keyframe into another layers property?
I want the position property of keyframeLayer to copy the keyframe from the animated mask.
And the 4 other layers to copy every 5th instance after the first keyframe;
For Upperleft this will mean it should copy keyframe no#1 and then the 6th,11th, etc etc.
Is this possible?
Hope you experts can help me!
Best Regards,
First of all, i was inspireed by this expression; hxxp://www.motionscript.com/expressions-lab-ae ... lines.html
Now what I am after is, to use an animated Mask instead of the layer.
I have heard it many times, this is slightly impossible to do.
But after some Trial and Error-phases i realized this;
A Mask equals a position path.
When you have a rectangle mask, make a keyframe.
Whenever you copy this keyframe into another layers position property, you will notice 5 keyframes. `The first Keyframe is the position of the UpperLeft Vertice from your mask. the 2nd is the lowerleft position, the 3rd the lowerRight, the4th the upperright. The 5th keyframe is kind of useless.. its the connection between the 4th and 1st keyframe.
Lets say, this layer (with the 5 keyframes) we will name; keyframeLayer.
anyway.. I made 4 other solids;
UpperLeft: Position should equal the 1st keyframe from keyframeLayer.
LowerLeft: ,, ,, ,, ,, 2nd keyframe from keyframeLayer
LowerRight:,, ,, ,, ,, 3rd keyframe from keyframeLayer
UpperRight:,, ,, ,, ,, 4th keyframe from keyframeLayer
Is there an expression wich copies a keyframe into another layers property?
I want the position property of keyframeLayer to copy the keyframe from the animated mask.
And the 4 other layers to copy every 5th instance after the first keyframe;
For Upperleft this will mean it should copy keyframe no#1 and then the 6th,11th, etc etc.
Is this possible?
Hope you experts can help me!
Best Regards,