Advertisement
Guest User

AR Script: Add Random text at beginning of filename

a guest
Mar 25th, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const SEP = "_";
  2. var colors = ["Red", "Green", "Blue", "Cyan", "Yellow", "Purple"];
  3.  
  4. return colors[Math.floor((Math.random() * colors.length))] + SEP + item.newBasename;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement