get average hsl value from multiple frames
by Pierre-Alexis Tremblay
on
Jun 30, 2009 at 7:38:40 pm
I'm not sure how to put this...
How to set the opacity of a layer based on the average brightness of the underlying layer which is let's say a movie clip but I need this value to be constant, so the value would be a combination of an average from the image area and from the time range (?)
Re: get average hsl value from multiple frames by Dan Ebberts on Jul 2, 2009 at 5:49:37 pm
Sure, you'd just need to add an outer loop that cycles through all the layers you're interested in, adds the result to an accumulator total variable and (at the end) divides by the number of layers. The exact code would depend on which layers you're after.