## Forum Replies Created

Page 1 of 2
• ### Christopher Hesse

February 7, 2024 at 10:02 am

Thank you very much!

• ### Christopher Hesse

May 16, 2023 at 9:05 am in reply to: play a number of specified keyframes on a layer

This is the final code I came up with, added by some help from ChatGPT.

startKeyframe = 4;

endKeyframe = 6;

rangeDurationOut = key(endKeyframe).time – key(startKeyframe).time;

if (time < key(startKeyframe).time) {

// Play through keyframes from keyframe(1) until startKeyframe

t = linear(time, inPoint, key(startKeyframe).time, key(1).time, key(startKeyframe).time);

} else if (time < key(startKeyframe).time + rangeDurationOut) {

// Pause at startKeyframe until rangeDurationOut is reached

t = key(startKeyframe).time;

} else {

// Continue playing from startKeyframe until endKeyframe

t = linear(time, outPoint – rangeDurationOut, outPoint, key(startKeyframe).time, key(endKeyframe).time);

}

valueAtTime(t);

• ### Christopher Hesse

May 11, 2023 at 2:20 pm in reply to: play a number of specified keyframes on a layer

Awesome, that worked! Well, sort of, because the expression ignores all keyframes that come before the specified keframes, but that is, because again, I did not specify my question particularly well. So what I need is for all keyframes before the specified keyframes to be played normally. But I do have an idea on how to achieve this :).

• ### Christopher Hesse

May 11, 2023 at 12:44 pm in reply to: play a number of specified keyframes on a layer

Let me try to clarify what I mean ðŸ™‚

What I want is for AE to play through a number of keyframes defined by a starting and ending keyframe, but timeshifted to the outpoint of the layer. E. g. if I have 6 keyframes on a layer, from 0 secs to 5 secs, I’d like to play keyframes 4 to 6, but at the outpoint of the layer minus the time necessary to play through these keyframes.

• ### Christopher Hesse

January 3, 2023 at 1:13 pm

At last, I did solve it myself and I realized that there were some errors in the original code I posted here, since I translated the “control for points” effect from german to english. I used point controls to circumvent the slider problem of going higher than 1 million and also to keep the effect controls to a minimum.
Anyhow, here’s the final code:

beginVal = effect(“Point Control”)(“Point”)[0];
endVal = effect(“Point Control”)(“Point”)[1];
startT = effect(“Point Control 2“)(“Point”)[0];
endT = effect(“Point Control 2”)(“Point”)[1];
decs = effect(“Slider Control”)(“slider”);

t = ease(time,startT,endT,beginVal,endVal).toLocaleString(“de-DE” , {minimumFractionDigits: decs, maximumFractionDigits: decs});

the “de-DE” stands for german formatting of numbers, but you can change that to whatever formatting you need. I’ve appended a link to stackoverflow.com where the most common ones are listed.

—————————————————————————-
https://stackoverflow.com/questions/3191664/list-of-all-locales-and-their-short-codes

• ### Christopher Hesse

March 10, 2022 at 12:23 pm

Yeah, I figured out as much. Time Blend set to 100 % acts like sort of a permanent Echo. Still â€“ insanely cool :).

• ### Christopher Hesse

March 10, 2022 at 9:55 am

Dude, your project feels like trying to read hieroglyphs without the rosetta stone to me :D. All I can glimpse is that it’s awesome! But this thing works without any plugin like Pastiche, correct?

• ### Christopher Hesse

March 9, 2022 at 11:36 am

Yeah, that’s pretty much what I’m trying to accomplish. I’ve already found a way, but I’d like to see if your way is better, if you’d like to share ðŸ™‚

• ### Christopher Hesse

March 8, 2022 at 2:24 pm

Uh â€“ interesting! I’ve never heard of Pastiche before, but that’s a spot on recommendation! Thanks a lot!

• ### Christopher Hesse

February 4, 2022 at 2:37 pm

Sorry for my late reply! I think I can clear things up, once again, by providing you with a screenshot ðŸ™‚ .

Page 1 of 2

We use anonymous cookies to give you the best experience we can.