-
Any way to “keep” randomness when duplicating comp?
I’m using seedRandom (__,true) in a bunch of expressions to randomly move a bunch of objects.
The problem is, when I want to work on an alternate version, I duplicate the comp (to try some new lighting, for example) — but then all my random numbers change!
And I have the camera positioned to ‘catch’ a couple of the objects!
I understand that the random seed is based NOT just on the value x in seedRandom(x,timeless) — but also on the comp, layer, property…
Is there any way to get the randomness to ‘persist’ when I duplicate the comp??? To get the same random numbers in a different (duplicate) comp?
Thanks!
seedRandom(9,true); x=random(-1,1); y=random(-1,1);z=random(-1,1);
[ transform.position[0]+x*thisComp.layer("Control").effect("x")("Point")[0]+ Math.abs(x)/x * thisComp.layer("Control").effect("x")("Point")[1],
transform.position[1]+y*thisComp.layer("Control").effect("y")("Point")[0]+ Math.abs(y)/y * thisComp.layer("Control").effect("y")("Point")[1],
transform.position[2]+z*thisComp.layer("Control").effect("z")("Point")[0]+ Math.abs(z)/z * thisComp.layer("Control").effect("z")("Point")[1] ]