Forum Replies Created

Page 1 of 2
  • Lauren Roundy

    August 16, 2024 at 12:02 am in reply to: Need to round to the nearest .05 decimal.

    Ope, I finally found the answer. I just used this:

    <code data-highlighted="yes">(Math.round(number*20)/20).toFixed(2)
  • Nevermind. I finally found what I need!

    // Keyframe your animation, starting on frame 0
    // This property will animate at every marker on this layer

    // If the property has no keyframes, the value at frame 0 is output
    if (thisProperty.numKeys == 0) { t = 0; }

    // Find the previous marker from current time
    else {
    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time){ n--;}
    }

    // If there is no previous marker, the value at frame 0 is output
    if (n == 0){ t = 0; }

    // Calculate t from elapsed time since the last keyframe
    else{
    m = marker.key(n);
    t = time - m.time;
    }
    }
    valueAtTime(t)

  • Lauren Roundy

    September 5, 2019 at 2:37 pm in reply to: Need to modify a marker-based expression

    Any help with this?

  • Thank you so much Dan! You truly are a true hero in the AE community.

    Would you be willing to break down exactly what the expression you gave me is doing or how it works? I understand the variables to a degree, but I wish I could wrap my head around how exactly it works. Either way, thanks so much!

  • Btw, here is my current code. But I don’t want it based on the “nearest” key, I want it based exactly on the key or marker. In other words, I want the number of my slider to change exactly when there’s a marker on the other layer.

    thisComp.layer("Death_icon 2").marker.nearestKey(time).index

  • Two more things:

    I tried it with and without the “color*100/255” and I’m getting the same result, which tells me that it isn’t necessary and is redundant code.

    Second, I want to take this one step further and use a “master control” layer that has four fill effects (or some equivalent color effect with a color picker color option) and then use the pick whip to link the RGB arrays in the expression to the master control layer. This way, I can easily change, using the color eye drop picker in AE, the color that the expression is referencing without having to type in RGB numbers. How would this be accomplished?

    You’re the best!

  • Awesome, thanks! We figured it out a slightly different way, but it worked out. The thing that was confusing was that to make it work fully, the original text layer color has to be set to black. Ours was set to grey, so it was giving us less saturated colors than we wanted.

    Thanks again for your help!

  • Wait, I changed my mind. I’m confused as to how to change the colors to any RGB value I want. What is the “color*100” line doing exactly?

  • Worked like a charm. Thank you so much!

  • Lauren Roundy

    September 14, 2010 at 6:25 pm in reply to: After Effects CS5 Rendering problems

    I’ve been having the same problem! Multiprocessing (as of the latest update) is suddenly useless. When I hit “render” in the queue, AE CS5 lags for exactly 3 minutes and 4 seconds and then doesn’t render my comps, but thinks that it did, and moves on to the next comp in the queue, only to lag for another 3 minutes and 4 seconds, and then again, it just moves onto the next comp in the queue without actually rendering anything.

    I’ve had to turn off multiprocessing, so now things that used to take 40 minutes take 5 hours to render. Please help!

Page 1 of 2

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