ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Stabilize on X or Y Axis using Mocha Data?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jason McKeeStabilize on X or Y Axis using Mocha Data?
by on Feb 14, 2011 at 8:31:50 pm

Is it possible to stabilize on only the X or Y axis using Mocha's tracking data? thanks in advance.
-jm


Return to posts index

Graham MacfarlaneRe: Stabilize on X or Y Axis using Mocha Data?
by on Feb 15, 2011 at 12:34:11 pm

Not sure about the context of your question but I would have thought it possible to stabilize fully in Mocha then bring the data back into AE onto a Null and then pick whip onto another layer/null only the X or Y stabilizing data that your interested in.

Graham Macfarlane
3D animator and VFX specialist
London UK


Return to posts index

Jason McKeeRe: Stabilize on X or Y Axis using Mocha Data?
by on Feb 15, 2011 at 6:10:23 pm

How I've always stabilized my footage using Mocha is to first track the footage in Mocha. I then take that tracking data into AE and apply it to the layer or a null that needs stabilized and then delete all of the keyframes (position, rotation and scale) except for the Anchor Point keyframes. If I applied it to a Null then I link the layer to the Null. This will stabilize the layer. However, there is no separate keyframes for the X or Y axis so how would I delete these? thanks.
-jm


Return to posts index


Bartek SkorupaRe: Stabilize on X or Y Axis using Mocha Data?
by on Feb 15, 2011 at 10:19:48 pm

Go to the first frame of the stabilized piece, read the value, let's say it is 365 for x and 290 for y.
Add an expression to the property and depending on which axis you want to keep, you should type in something like:

x=value[0];
y=290;
[x,y]

or:

x=365;
y=value[1];
[x,y]

That's, what I would do.
The expression will read the value, and leave one axis and set the other axis to the value you specify.

Bartek Skorupa
Warszawa, Poland


Return to posts index

Jason McKeeRe: Stabilize on X or Y Axis using Mocha Data?
by on Feb 15, 2011 at 10:21:45 pm

thank you I will definitely try this out.


Return to posts index

Nathan WoodRe: Stabilize on X or Y Axis using Mocha Data?
by on Jul 24, 2012 at 12:43:57 am

You sir, have saved the day for me. Thank you very much.


Return to posts index


Graham MacfarlaneRe: Stabilize on X or Y Axis using Mocha Data?
by on Feb 15, 2011 at 11:35:34 pm

I don't think you can delete an X key frame without Y being deleted, and vice-versa.

Lets say you want to use only the X data from your track.
If you pick whip the X field to another null, by default the expression should read something similar to:

temp = thisComp.layer("Null 1").transform.position[0];
[temp, temp]



The result will be that the new Null X and Y will equal the tracked X value.
Change the above expression to:

temp = thisComp.layer("Null 1").transform.position[0];
[temp, X]


Where X is a number of your choosing.

Graham Macfarlane
3D animator and VFX specialist
London UK


Return to posts index

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