how to space out key-frames evenly?

New Here ,
Dec 05, 2018 Dec 05, 2018

Copy link to clipboard

Copied

My question is fairly simple but haven't found a good solution yet.

The image below shows all key-frames have been placed on a layer

I am wondering is there any ways that can quickly space out those dots evenly. like this image below:

I use photoshop / illustrator as well. they have a series of buttons like this:

Does After Effect has something similar tools like that as well? if not, how can i quickly achieve the evenly space out dots.

Thanks, Appreciated

Views

23.9K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 05, 2018 Dec 05, 2018

Copy link to clipboard

Copied

By altering the positions of the keyframes on the timeline, you'll also alter the speed at which the property in question animates.

Do you want to do that?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 05, 2018 Dec 05, 2018

Copy link to clipboard

Copied

yes.. i don't mind the speed. i just want to make the space between each dot the same, so i don't have to eyeball it every time.

Thanks

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 05, 2018 Dec 05, 2018

Copy link to clipboard

Copied

I think this may be the first time no one has cared about the speed of an animation!

First, make all your keyframes.  Then you can use the Rove Across Time command.  I haven't used it in a LONG time, I'd have to look up how to use it, but it's the closest thing AE has to what you want to do in any kind of automated way.

And even then they probably won't be evenly spaced.  For that you have to rely on good 'ol arithmetic.  Chances are pretty good you won't be able to use arithmetic, either -- when you divide the number of keyframes by the number of frames they span you'll probably come up with fractions of frames -- and you can't move the timeline cursor in fractions of frames.  So you're stuck.

Now, Rove Across Time will put keyframes in between actual frames.  But again, they won't be evenly spaced.

I'm not really sure what your goal is in doing this other than to make the spacing of your keyframes look nice and tidy, which isn't the goal of animating in After Effects.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 05, 2018 Dec 05, 2018

Copy link to clipboard

Copied

Thank you for the suggestions, what i mean i don't mind changing the speed of the animation is because i want each key frame (the dots) separated equally. for example: i move the circle from left to right in 2.5 seconds, and move it back to left in 2.5 seconds. i wish there is a way to copy and paste the key-frame repeatedly exactly 2.5 seconds apart. so i don't have to drag each dot individually apart to match the 2.5s.

What i am wish for is i can place those dots randomly in the beginning and space them out equally with one or two clicks. it is a tedious work to move each dot and make sure they all have the same distance between each other.

Hopefully I've made my questions more clear now, and wish Adobe or some scripts have a quick solution for this. since this problem has been solved in both photo-shop and illustrator.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 26, 2019 Apr 26, 2019

Copy link to clipboard

Copied

I'm curious about this as well, did you found a solution? Maybe a script could help

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 07, 2020 Feb 07, 2020

Copy link to clipboard

Copied

You are all over the internet, in several forums, just pretending you help people, but instead you just hate like a troll. The question is more than acceptable and so easy to understand. If people issues are never a problem to you, maybe you have the problem. Two years later, and this still would be a great script to have, actually.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 17, 2020 May 17, 2020

Copy link to clipboard

Copied

I'm not sure what your goal is in debating the need for the asker's question; it was a good one.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 24, 2021 Feb 24, 2021

Copy link to clipboard

Copied

This would be helpful for creating a "wobble" effect. It's a pretty simple request. And I would find it useful too.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 22, 2021 Jul 22, 2021

Copy link to clipboard

Copied

I chose rove across time and it definitely did NOT evenly space them. it left in the exact same place. only they're circles now instead of easy ease keyframes

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

Keyframes are not always about motion. They can be uses for a lot of other properties and as an input for expressions too.

 

In my case I need this to distribute Toggle Hold keyframes to reveal a text in a .pdf from InDesign in a printer-like manner - line by line with a regular interval. The keyframes are changing a Mask.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 18, 2019 Jun 18, 2019

Copy link to clipboard

Copied

I also had this doubt before, you just need to select all the keyframes that you want to space, then press Alt+left button ​and drag  the last keyframe ultil you reach the point you want. Hope this helps!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 25, 2020 Mar 25, 2020

Copy link to clipboard

Copied

You can also highlight your keyframes and and press Alt+the left button on your mouse to add space between your keyframes evenly.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 22, 2021 Jul 22, 2021

Copy link to clipboard

Copied

This did not evenly space my keyframes. All it did was shift all of them to the left by a frame

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 11, 2020 Apr 11, 2020

Copy link to clipboard

Copied

There I am, same questions, have not found any solution yet, If anyone could retake this issue, it would be highly appreciated. I really would like to know if there is an option to distribute evenly several keayframes in a parameter.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

I think someone could write a script to do this. Didn't find it either.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Apr 11, 2020 Apr 11, 2020

Copy link to clipboard

Copied

If you have hundreds of keyframes doing this can be quite a problem but if you have 10 or 20 it's pretty easy.

 

  1. Let's say you have 20 keyframes spaced randomly over 10 seconds. Start by setting the CTI (current time indicator) at frame 20.
  2. Select all of your keyframes by selecting the property in the timeline.
  3. Hold down the Alt/Option key and click on the last selected keyframe and drag the keyframes to the left until the last keyframe snaps to the CTI.
  4. Zoom in on the timeline by clicking on the Zoom tool at the bottom left of the layer panel to zoom all the way so you can see the individual frames.
  5. Click each keyframe and drag and they will snap to the start of the frame until they are all 1 frame apart
  6. The last step is to zoom all the way out on the timeline, select all keyframes, hold down the Alt/Option key and shift drag the last keyframe to its final position. All done. It takes about 2 minutes to do 20 keyframes.

 

I have seen this question a bunch of times so I decided to record a very simple 2-minute tutorial.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 27, 2020 Apr 27, 2020

Copy link to clipboard

Copied

That video cleared so much up for me regarding using the Alt key to stretch the keyframes. I've been looking for a way to do this for several days and had read about the Alt but did not understand exactly how to do it until watching your video. Was not exactly what I was looking for, but actually better than I was looking for and more usable in many situations. Thanks so much!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Thank you! This was the most helpful answer in this thread.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

Thankyou

 

This is a good workaround, I wish AE had an option to evenly space out keyframes in a given area. I downloaded rift plugin and I can't even work that plugin out!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2021 Oct 10, 2021

Copy link to clipboard

Copied

Nice one, thank you!  Staight answers.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 30, 2021 Nov 30, 2021

Copy link to clipboard

Copied

Thank you, your video was very helpful!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 17, 2022 Jan 17, 2022

Copy link to clipboard

Copied

I've checked all the replies below and none answers his question.

 

does anyone know how to do it?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jan 24, 2022 Jan 24, 2022

Copy link to clipboard

Copied

Meanwhile I wrote an expression that has the same effect. Though not distributing the actual keyframe dots, it does distribute the values evenly when rendering. Thanks for inspiring me to do so 🙂

Still longing for a script that distributes the actual keyframes.

 

// Distribute keyframe values evenly (not the actual keyframes)
//
// Create markers at the Start and End times
// Create any number of keyframes, don't care about the exact timing
// Paste this expression in the property's expression field

// Expression by jaydude.nl / 2022

var mS = marker.key(1).time;
var mE = marker.key(2).time;
var kValue = [];
var n = numKeys;
var i;


for (i = 1; i < n + 1; i++) { 
  kValue[i] = valueAtTime(key(i).time);
};

k = Math.round(linear(time , mS , mE , 1 , n));

kValue[k];

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 24, 2022 Feb 24, 2022

Copy link to clipboard

Copied

LATEST

I wanted a load of evenly spaced hold key frames with ascending position values. My work around is this:

 

1. create two key frames the required distance apart.

2. Create a null object. This will just be like a construction guide layer.

3. Select your two key frames and ctrl C to copy them. 
4. Use the K key to move the play head exactly on the second keyframe and with the Null object selected Ctrl V to paste. Keep pressing K to shift the play head along and pasting until you have a guide layer of evenly distributed keyframes. 
5. now on the layer you actually want keyframes you can use J and K to snap to your guides. And add your keyframes accordingly.

6. For the keyframe values I had to consider the maths but I put the equation in the value box. For example I wanted each hold keyframe to increase the X position by 200 pixels so I would add the keyframe and if the existing X value was 100 I would add "+200" in the little box, hit enter and it would be 300. The next KF I added would then also be 300 and I would "+200" to that. Etc.

 

7. You can delete the null layer if you don't need it anymore.

 

Its not automatic but it's precise and fairly painless.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines