<p>If you are just stabilising the position of an object, it could be accomplished like this:</p>
<ol>
<li>Track the footage using the tracker. Window -&gt; Tracker</li>
<li>Set it to 'Track Motion' not 'Stabilize Motion'.</li>
<li>Make sure 'Position' is checked.</li>
<li>Run the tracker.</li>
<li>Once it is complete, hit 'U' with the layer selected to expose the tracked keyframes.</li>
<li>Create a new Null layer. Layer -&gt; New -&gt; Null Object</li>
<li>Add a 'Slider Control' effect to the Null layer. Rename it to 'Amount'.</li>
<li>Press 'P' to expose the position property.</li>
<li>Alt + click the stopwatch to create an expression.</li>
<li>Paste in the expression below:</li>
</ol>
<pre><code>// The original position
var origX = 646; // Change this 
var origY = 330; // Change this

// Your tracked footage
var track = thisComp.layer(&quot;Tracked Layer&quot;).motionTracker(&quot;Tracker 1&quot;)(&quot;Track Point 1&quot;).featureCenter;

// The difference between this frame and the first frame
var dx = origX - track[0];
var dy = origY - track[1];

// Add the difference back to the original 
// Multiply this by the amount you want to achieve
var newX = origX + dx * effect(&quot;Amount&quot;)(&quot;Slider&quot;).value;
var newY = origY + dy * effect(&quot;Amount&quot;)(&quot;Slider&quot;).value;

[ newX, newY ]

</code></pre>
<p>The origX and origY values should be set to be the same x and y value of that of the very first keyframe of the 'featureCenter' property on your tracked layer.</p>
<p>You will also need to rename the layer referenced in the 'track' variable from 'Tracked Layer' to the name of you tracked footage layer.</p>
<p>You can now keyframe the Amount slider values, keeping it between 0 and 1. Where 1 would be fully stabilised and 0 would be no stabilisation.</p>
<p>I hope this is close to what you were hoping to achieve!</p>

CC BY-SA 4.0
2022-03-01T01:15:12.700Z
2022-03-01T01:15:12.700Z
Clif
<p>I would like to stabilize a video, but animate the amount of stabilization.</p>
<p>I tried using the Warp Stabilizer VFX effect, but while I can controll the strength of stabilization using the 'smoothness' slider, I cannot animate this property.</p>
<p>Is there another way to change the amount of stabilization during a video?</p>

<after-effects><stabilisation>
AfterEffects: How to animate amount of video stabilization
matthias_buehlmann
# AfterEffects: How to animate amount of video stabilization

(Asked by: username_0 on 2022-01-14)

I would like to stabilize a video, but animate the amount of stabilization.

I tried using the Warp Stabilizer VFX effect, but while I can controll the strength of stabilization using the 'smoothness' slider, I cannot animate this property.

Is there another way to change the amount of stabilization during a video?

**Tags:** after-effects, stabilisation


---

## 1 answers

### Answer by username_1 on 2022-03-01. Score: 1

If you are just stabilising the position of an object, it could be accomplished like this:

Track the footage using the tracker. Window -> Tracker
Set it to 'Track Motion' not 'Stabilize Motion'.
Make sure 'Position' is checked.
Run the tracker.
Once it is complete, hit 'U' with the layer selected to expose the tracked keyframes.
Create a new Null layer. Layer -> New -> Null Object
Add a 'Slider Control' effect to the Null layer. Rename it to 'Amount'.
Press 'P' to expose the position property.
Alt + click the stopwatch to create an expression.
Paste in the expression below:

// The original position
var origX = 646; // Change this 
var origY = 330; // Change this

// Your tracked footage
var track = thisComp.layer("Tracked Layer").motionTracker("Tracker 1")("Track Point 1").featureCenter;

// The difference between this frame and the first frame
var dx = origX - track[0];
var dy = origY - track[1];

// Add the difference back to the original 
// Multiply this by the amount you want to achieve
var newX = origX + dx * effect("Amount")("Slider").value;
var newY = origY + dy * effect("Amount")("Slider").value;

[ newX, newY ]


The origX and origY values should be set to be the same x and y value of that of the very first keyframe of the 'featureCenter' property on your tracked layer.
You will also need to rename the layer referenced in the 'track' variable from 'Tracked Layer' to the name of you tracked footage layer.
You can now keyframe the Amount slider values, keeping it between 0 and 1. Where 1 would be fully stabilised and 0 would be no stabilisation.
I hope this is close to what you were hoping to achieve!


---

