random - randomly rotate objects in adobe illustrator -


how randomly rotate objects in adobe illustrator. wanted ask how rotate many selected objects @ same angle , rotate them @ random angle.

script adobe illustrator in javascript.

your selected objects it's array in document.selection, so:

var min = number(prompt("minimum angle?","0")); var max = number(prompt("maximum angle?","360"));  for(var in activedocument.selection){     var angle = math.floor(math.random() * (max - min + 1)) + min;     activedocument.selection[i].rotate(angle); } 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -