Random Motion After Effects


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. random() // number between 0 and 1
  2. random(6) // number between 0 and 6
  3. random(-2,4) // number between -2 and 4
  4. random([3,4,5]) // vector between [0,0,0] and [3,4,5]
  5. random([3,4,5],[6,7,8]) // vector between [3,4,5] and [6,7,8]
  6.  
  7. random([thisComp.width,thisComp.height])
  8.  
  9. random([0,0],[thisComp.width,thisComp.height])
  10.  
  11. x = random(thisComp.width);
  12. y = random(thisComp.height);
  13. [x,y]
  14.  
  15. x = random()*thisComp.width;
  16. y = random()*thisComp.height;
  17. [x,y]
  18.  
  19. seedRandom(3);
  20. random()
  21.  
  22. seedRandom(999);
  23. random()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.