Forum Replies Created

  • Chris Gulliford

    September 12, 2014 at 8:07 pm in reply to: I need to display a point on an x/y axis

    Absolutely terrific.

    Thanks so much for your help!!!

    Have a great weekend.

  • Chris Gulliford

    September 11, 2014 at 4:12 pm in reply to: coloring text based on numbers from an array (list)

    This was great! thanks…. It took me a bit to think to put the code in under “color” lol.

  • Chris Gulliford

    September 10, 2014 at 8:59 pm in reply to: coloring text based on numbers from an array (list)

    that works good, but returns whatever’s between the square brackets… How do I get that number to return and change in the text’s color?

    Thanks again.

  • Folks, thanks for your help… both operations you all successfully provide the highest number in the list. That is not exactly what I’m shooting for. Below is the code I have that prints to screen (for lack of the correct terminology) the numbers of my array at a rate of 5 times per second (every sixth frame/30 fps).

    see code

    So… what needs to happen is an incremental comparison with the highest number up to that point being displayed.

    example:

    01 0 – 0 is displayed
    02 35 – 35 is displayed
    03 100 – 100 is displayed
    04 95 – 100 remains displayed
    05 125 – 125 is displayed
    06 100 – 125 remains displayed

    thanks for all your efforts.

    // expression to take input of series of numerical values and display them five per second or every six frames
    // get our source list
    listText = thisComp.layer("heart").text.sourceText;

    // now make an array, assuming a comma delimiter
    list = listText.split(",");

    // what's the biggest value? we'll use this as our denominator
    maximum = Math.max.apply(Math, list);

    // which number should we look at? one per six frames
    wholeSeconds = Math.floor(time-inPoint);
    milliSeconds = Math.floor(((time-inPoint) - wholeSeconds) * 1000);
    indexModifier = Math.floor(milliSeconds/200);
    target = (wholeSeconds*5) + indexModifier;

    // make sure we don't try to find the value-as-a-percentage for an out-of-bounds array number, or try to divide by zero
    if ((target >= 0) && (target < list.length) && (maximum != 0)) {

    // this will print to screen the array number or zero
    speed = list[target];
    } else speed= 0;

  • Thanks for the response. With some help I’ve created a visible number that displays each number of an array in succession. The array is a comma delimited list pasted into a text layer. The visible number is an expression in a second layer that displays each number. To look at it the number goes up and down like a car digital speedometer. What I need to do now is create a second expression that keeps track of and dislays each highest number as it succeeds. Ex: Array #1 is higher than 2 so 1 displays. 3 is higher that 2, but lower than 1 so 1 remains…etc. your help is appreciated.

  • Thanks… I think I’ve got what I need.

  • Again, much thanks! Geneous!!

  • Bam! It works! I knew there was a way. Thanks for the input. Lifesaver!!!

    To further the challenge… The data I have is plotted once per second. Is there a way to accomplish this?

    Thanks again.

  • Bam! It works. I knew there was a way. Thanks for the input. Lifesaver!!!

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