Thanks for the information Neil.
when using the expression:
LAYER.effect(“Fill”)(“Color”).valueAtTime(x)
(this is to generate my light color from a fill effect)
I had some strange issues come up.
It didn’t seem to be referencing the correct color at the specific time, and if my frame exceeded (9), (10 and above) my color went black.
The fill color effect is being driven by a wiggle point expression on my background layer(precomp ramp effect):
targetLayer = thisComp.layer(“background”);
samplePoint = targetLayer.effect(“Point Control”)(“Point”);
sampledColor = targetLayer.sampleImage(samplePoint, radius = [.5, .5]);
sampledColor
I adjusted the script for a frame offset, (which I want for variance between my light colors)and this seems to be working pretty good. (except the expected end of comp when my positive offset has nothing to sample)
thisComp.layer(“Control Master”).effect(“Fill”)(“Color”).valueAtTime(time + 4*thisComp.frameDuration);
Follow up question:
I’m trying to alternate between a continuous update of color (with the time offset) or a single frame hold.(or simply turning the expression off and the light resuming its native color)
I’m guessing the Checkbox Control would be the way to do this.
My expression language is very limited but, here’s my attempt at implementing this:
chBx = thisComp.layer(“Control Master”).effect(“Checkbox Control”)(“Checkbox”)
if (control == 1){
thisComp.layer(“Control Master”).effect(“Fill”)(“Color”).valueAtTime(time + 2*thisComp.frameDuration);
}else{
value;
}thisComp.layer(“Control Master”).effect(“Fill”)(“Color”).valueAtTime(1);
Obviously getting errors with this command, thought it might help.
Thanks