-
Noise() help
Hey all, just followed dan ebberts tutorial on using hte noise() function. Was wondering if somebody could go through and comment the code for me so i can better understand how it works. I have a good understanding of programming, just not the commands used in AFX!
cheers.
numRows = 10;
numCols = 10;
xyCompress = 200;
speedCompress = 1;
amplitude = 100;row = Math.floor((index – 1)/numCols);
col = (index – 1)%numCols;
x = col*width + width/2;
y = row*height + height/2;
xOffset = (this_comp.width – numCols*width)/2;
yOffset = (this_comp.height – numRows*height)/2;z = amplitude*noise([x/xyCompress,y/xyCompress,time/speedCompress]);
[x,y,z] + [xOffset,yOffset,0]