FORUMS TUTORIALS FEATURES VIDEOS PODCASTS EVENTS SERVICES NEWSLETTER NEWS BLOGS
 ADOBE AFTER EFFECTS: Home Forum Basics Expressions Tutorials Podcasts AE Techniques Creative Cloud Debate FAQ

# Re: Creating an ocean of text layers, all reacting to a displacement map

COW Forums : Adobe After Effects Expressions

 Re: Creating an ocean of text layers, all reacting to a displacement mapby Dan Ebberts on Apr 27, 2012 at 7:39:49 pm

OK--play around with these. You'll probably want to tie the variables to sliders (it's important that they match in the two expressions).

``` // *** position *** maxX = 300; maxZ = 100; maxY = 100; tMult = .25; xMult = .25; zMult = .25; seedRandom(index,true); x = random(-maxX,maxX); z = random(-maxZ,maxZ); y = maxY*noise([x*xMult,z*zMult,time*tMult]); value + [x,y,z] // *** z rotation *** maxX = 300; maxZ = 100; maxY = 100; tMult = .25; xMult = .25; zMult = .25; deltaX = 10; rMult = .15; seedRandom(index,true); x = random(-maxX,maxX); z = random(-maxZ,maxZ); y1 = maxY*noise([(x-deltaX)*xMult,z*zMult,time*tMult]); y2 = maxY*noise([(x+deltaX)*xMult,z*zMult,time*tMult]); rMult*radiansToDegrees(Math.atan2(y2-y1,2*deltaX)) ```

Dan