Currently I give away all my motion scripts for free. If you've found them useful and would like to support future development, you can do so here → To get updates on future ones, follow me on LinkedIn →
How to use the script
Always check code before running it on your computer. Even basic scripts like this one. If you’re not a developer, ask an LLM like ChatGPT, Claude, or Gemini to verify it for you.
Option 1: Install to your AE Folder
Download this and install the below .jsx file in your After Effects Script folder. You can then run it using the scripts menu, or by using a launcher like Quick Menu 3.
Option 2: Adapt the script yourself
Alternatively copy the code below and develop your own version. If you’re not a developer you can do this easily with an LLM like ChatGPT.
JV Time Remap.jsx0.9KB
(function() {
// Ensure there is an active composition
var comp = app.project.activeItem;
if (!comp || !(comp instanceof CompItem)) {
alert("No active composition.");
return;
}
// Ensure there is a selected layer
var layer = comp.selectedLayers[0];
if (!layer) {
alert("No layer selected.");
return;
}
// Enable time remapping
if (!layer.canSetTimeRemapEnabled) {
alert("Layer cannot have time remapping applied.");
return;
}
layer.timeRemapEnabled = true;
// Add a keyframe at the start and end of the layer
var startTime = layer.inPoint;
var endTime = layer.outPoint;
layer.timeRemap.addKey(startTime);
layer.timeRemap.addKey(endTime);
// Select keyframe at the end of the layer
var lastKeyIndex = layer.timeRemap.nearestKeyIndex(endTime);
layer.timeRemap.setSelectedAtKey(lastKeyIndex, true);
})();