-
Highlighting Shaper layer using sampleImage
Attempting to Create a Gauge Risk Chart, like those fire danger signs. High risk-Red, Moderate risk-Orange, Low risk-Yellow, No Risk-Green.
Attempting to use sampleImage to highlight the colors, but whenever the null is tied to anything, like the needle pointer in the middle, it stops working.
I tried to load the project, only 285 KB but Creative Cloud won’t do it.
p = thisComp.layer("Null 2").transform.position
s = thisLayera = s.sampleImage(p,[.1,.1])[3]
linear(a,0,1,0,100)