Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time remap control by a drop menu?

  • Time remap control by a drop menu?

    Posted by Nicolas Gamz on October 1, 2023 at 5:46 pm

    Hi every one! I’m stuck in a huge project. A have a bunch of precomps that will be time remapped to play different loop at different time. To avoid copy pasting keyframes, i would like to keyframe a drop menu that will loop different part of the animation. I dont know if i’m clear, but i ask chat gpt but i’m the comp stuck at 0 or play the comp normaly.

    // Define the dropdown menu effect

    menuEffect = effect(“Timeremap_Ctrl”)(“Menu”);

    // Define the time remap ranges

    ranges = {

    “01”: [0, 14],

    “02”: [15, 44],

    “03”: [45, 104],

    “04”: [105, 174],

    “05”: [175, 235]

    };

    // Get the selected menu option

    selectedOption = menuEffect.value;

    // Initialize the output time remap value

    outputTimeRemap = 0;

    // Check the selected menu option and set the output time remap value

    if (selectedOption in ranges) {

    selectedRange = ranges[selectedOption];

    outputTimeRemap = linear(time, selectedRange[0], selectedRange[1], 0, thisComp.duration);

    }

    outputTimeRemap;

    Hector Vera replied 2 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Hector Vera

    October 2, 2023 at 10:37 pm

    Keyframing a drop menu? You mean like making a frame by frame animation of the drop menu going from down to up to show the option? is that what you are trying to animate? Let me know cause I am trying to see if I understand what you are looking for.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy