-
seedRandom issue
Hi everyone, I was trying to control a bunch of layers off a slider to randomly move in x,y,z using the seedRandom. I can get it to work being random (totally!) with this:
a = random(-500,500);
b = random(-500,500);
c = random(-500,500);x = a*thisComp.layer(“Adjustment Layer 2”).effect(“x depth”)(“Slider”);
y = b*thisComp.layer(“Adjustment Layer 2”).effect(“y depth”)(“Slider”);
z = c*thisComp.layer(“Adjustment Layer 2”).effect(“z depth”)(“Slider”);[x,y,z]
…………………
but when I try to seedRandom (see below) I get an error. Can someone explain where I’ve gone wrong??? please…
a = seedRandom(3,true);
random(-500,500);b = seedRandom(2,true);
random(-500,500);c = seedRandom(1,true);
random(-500,500);x = a*thisComp.layer(“Adjustment Layer 2”).effect(“x depth”)(“Slider”);
y = b*thisComp.layer(“Adjustment Layer 2”).effect(“y depth”)(“Slider”);
z = c*thisComp.layer(“Adjustment Layer 2”).effect(“z depth”)(“Slider”);[x,y,z]