-
Implementing random seed but maintaining several objects playing at the same time not just 1
Hey, wanting to use this code to make a composition of a star randomly appear on stage but it only works for 1 at a time. Wondering how I can tweak this to allow for 3, and at varying times not in sync. I could just have 3 different layers and change the holdTime but thought there might be a more logical approach. New to expressions.
holdTime = 2; //time to hold each position (seconds)
minVal = [0.2*thisComp.width, 0.2*thisComp.height];
maxVal = [0.4*thisComp.width, 0.8*thisComp.height];seed = Math.floor(time/holdTime);
seedRandom(seed,true);
random(minVal,maxVal)
Appreciate any help. Thanks.