Thanks for that Dan. Unfortunately I didn’t see it in time but managed to come up with a solution. This works perfectly if anyone if anyone else is interested.
Code on Slider:
holdTime = 0.5; //time to hold each position (seconds)
seed = Math.floor(time/holdTime);
seedRandom(seed,true);
x = random(1,5)
Math.round(x);
Code for Wind X Value:
// Make x equal to slider value
x = (thisComp.layer(“Null 2”).effect(“Slider 1”)(“Slider”) )
// Set position when x = 1
if (x < 2) thisComp.layer(“Null 2”).effect(“Slider 2”)(“Slider”)
// Set position when x = 2
if (x > 1) if (x < 3) thisComp.layer(“Null 2”).effect(“Slider 3”)(“Slider”)
// Set position when x = 3
if (x > 2) if (x < 4) 0
// Set position when x = 4
if (x > 3) if (x < 5) 0
// Set positionwhen x = 5
if (x > 4) 0
https://vimeo.com/chj214