Forum Replies Created

  • Hi Tomas,

    1. Yes, Ideally I’d like to control the scaling animation from within a pre-comp and time-remap it.
    2. Correct, Animation In on first marker, Animation out at last keyframe. I’ve been plugging away at the animation in code and I’m a bit stuck. So far I’ve got:


    m = thisComp.layer(1).marker.key(1);
    animationDurationInFrames = 10;
    frameRate = 23.976;
    animationDurationSeconds = animationDurationInFrames/frameRate;
    mTime = m.time;
    animStart = mTime-animationDurationSeconds;

    if (time >= mTime) {
    animationDurationSeconds
    }else if(time <= animStart){
    0
    }else{
    time-animStart
    }

    At this point the circle just pops on at the first marker. I can’t get it to animate on at the marker. As for triggering the out animation on the last key frame, I’m guessing I’d use numKeys? But I have no idea how I’d get it to return the last keyframe on a given layer.

    Eric

  • Ok, after some if/else statement poking around I found the solution for 2, getting the boxes to disappear when there’s no text:
    if (thisComp.layer(1)("Text")("Source Text") == "") {
    0
    }else{
    100
    }

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