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
Post a Comment