Chris Gulliford
Forum Replies Created
-
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.
-
Chris Gulliford
September 5, 2014 at 12:44 pm in reply to: loop thru an array to find and save the higher of compared numbersFolks, 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 displayedthanks 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; -
Chris Gulliford
September 4, 2014 at 9:57 pm in reply to: loop thru an array to find and save the higher of compared numbersThanks 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.
-
Chris Gulliford
August 25, 2014 at 8:44 pm in reply to: need to rotate an arrow to specific angle taken from an arrayThanks… I think I’ve got what I need.
-
Chris Gulliford
August 21, 2014 at 2:45 pm in reply to: create guage that displays output from list of numbers (excel or text list comma delimited)Again, much thanks! Geneous!!
-
Chris Gulliford
August 21, 2014 at 1:25 pm in reply to: create guage that displays output from list of numbers (excel or text list comma delimited)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.
-
Chris Gulliford
August 21, 2014 at 12:31 pm in reply to: create guage that displays output from list of numbers (excel or text list comma delimited)Bam! It works. I knew there was a way. Thanks for the input. Lifesaver!!!