Forum Replies Created

  • Thank you once again Mr. Dan.

  • No, not really.
    I want the empty markers to act like a “reset button” so the value starts with 1 at the marker after the empty “red” markers.

    Is that possible?

  • Yeah… something like this.

    The expression you provided works but it starts counting from .1 but I want to ease into 1 (first marker) and then 2 (second marker) etc.

  • Thank you very much Mr. Dan. Worked perfectly.

    While I have you, I’m working with this expression below to use marker’s index to count the number of markers and put in “Offset” value with a little easing.

    I want the value to start from 0 every time there is a marker with empty comment.

    // Check for markers

    numMarkers = marker.numKeys;

    // Assign value to marker index with easing

    if (numMarkers > 0) {

    nearestMarkerIndex = marker.nearestKey(time).index;

    markerTime = marker.key(nearestMarkerIndex).time;

    if (markerTime > time && nearestMarkerIndex > 1) {

    prevMarkerTime = marker.key(nearestMarkerIndex - 1).time;

    t = (time - prevMarkerTime) / (markerTime - prevMarkerTime);

    markerIndex = nearestMarkerIndex - 1 + ease(t, 0, 1, 0, 1);

    } else {

    markerIndex = nearestMarkerIndex;

    }

    } else {

    // No markers, set markerIndex to 0

    markerIndex = -1;

    }

    // Use marker index value

    markerIndex;

  • Eva Boe

    May 25, 2023 at 4:17 pm in reply to: Ease in Text

    Thanks for replying but what I am looking for is say… these markers are synced to words of a voiceover and when a word is said, the word slightly slides up.

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