Open fone626 opened 1 month ago
it recalcs a random number on each frame. Not saying that is right, but that appears to be what the code does.
That's what I was guessing, but it doesn't do what it visually says it will do, and if it's going to recalculate at every frame there is no point in having the points setting. It appears to be working incorrectly to what was intended but if it is then can a setting be added to not recalculate every frame, because it would make it a lot more useful to everyone.
I added https://github.com/xLightsSequencer/xLights/pull/4858 which should be something that can be used here. Generate a new timing track and mess with the values to 'look' random. Then this can be pointed to using the timing track in the value curve setting.
I added #4858 which should be something that can be used here. Generate a new timing track and mess with the values to 'look' random. Then this can be pointed to using the timing track in the value curve setting.
While useful, a randomized timing track doesn't accomplish what I need for my use case.
When you set a value curve to random and the number of points to a low number, in my case, 1, the graph shows a randomly chosen flat line, so I expect the value to be randomly chose but stay flat for the length of the effect, but what you actually get is a new random number per frame so your effect jumps around violently. This appears to affect all the value curves for all the effects (at least all the ones I've tested).
Steps to reproduce the behavior: Create a new sequence select any effect, but in my case single strand set Chase types to static left-right Then set the value curve on offset to random and then number of points to 1. the graph will show a flat line. after clicking OK the preview will show a line randomly jumping all over the model, instead of just picking a random location and not moving for the duration of the effect.