02-24-2022, 04:28 AM
The math is basically this:
So if you have offset variation set to 100, the start frame should be anywhere from 0-100 for particles. If you set your offset variation to be greater than the sequence length, the value will be clamped to the sequence length using a modulus operation (so an offset of 120 in a 100 frame sequence will return a frame value of 20)
Code:
start frame = (offset + (offsetVariation * (random, 0, 1)))
start frame %= sequence length //modulus
So if you have offset variation set to 100, the start frame should be anywhere from 0-100 for particles. If you set your offset variation to be greater than the sequence length, the value will be clamped to the sequence length using a modulus operation (so an offset of 120 in a 100 frame sequence will return a frame value of 20)