Reply To: Random baseline Offset for every Character

#63498

The first line inside the loop sets a random baseline shift. Following the formula, it seems this sets either 0 or 1, nothing else. In your case, you want −1 to +1 and all values in between. So try this line instead:

app.selection[0].characters[i].baselineShift = 2*Math.random()-1;

The real question everyone will want an answer to … What is a “crawl”? :)

This article was last modified on November 5, 2012

Comments (0)

Loading comments...