Hey
Ive been trying to get my colorcorrection effect only to kick in between sunrise and sunset
So far that works to enable and disable it. However my goal is to have the effect appear after sunrise and disappear before sunset. I want to do it like this:
its getting dark, reduce effect (the values in the first [ ] go towards zero) by a bit every X minutes until the values are 0 ... night time ... ZzZzZz ... its getting day again, increase values again by a bit every X minutes until set values are reached
does anyone has a clue how to do that, properly?
Ive been trying to get my colorcorrection effect only to kick in between sunrise and sunset
Code:
_sunrise = 4;
_sunset = 22;
_hndl = ppEffectCreate ["colorCorrections", 1501];
_hndl ppEffectEnable true;
while {(daytime > _sunrise) and (daytime < _sunset)} do {
_hndl ppEffectAdjust[ 1, 1, 0, [0.06, 0.1, 0.03, -0.07],[0, 0, 0, 1.2],[0.2, 0.2, 0.2, 0]];
_hndl ppEffectCommit 3;
};
_hndl ppEffectAdjust[ 1, 1, 0, [0.0, 0.0, 0.0, 0.0],[0, 0, 0, 1.2],[0.2, 0.2, 0.2, 0]];
_hndl ppEffectCommit 3;
So far that works to enable and disable it. However my goal is to have the effect appear after sunrise and disappear before sunset. I want to do it like this:
its getting dark, reduce effect (the values in the first [ ] go towards zero) by a bit every X minutes until the values are 0 ... night time ... ZzZzZz ... its getting day again, increase values again by a bit every X minutes until set values are reached
does anyone has a clue how to do that, properly?