My question is : is it possible to randomly change the "baseline shift" on a text, to get an effect like this : <http://ddisk.ovh.org/text.jpg>
I've done this manually, and it's very long and boring to do, especially when there's more text. So, if there's any way to do this automatically, I would be glad to know it.
Thanks a lot to all !
Copy everything below my initials. Paste it into a text editor. Save it as a PLAIN TEXT file. Name it whatever you want, but give it a .js filename extension. Put in in Illustrator's Presets/Scripts folder. Quit and relaunch Illustrator. The script will appear in the File>Scripts submenu.
To use it, "normal select" a single textFrame object. Then select the script from the File>Scripts menu. The script will prompt you for a baseline shift range value. It defaults to 10 pts, but you can enter whatever value you want. It will then randomly shift the baseline of each character between the positive and negative of the value you entered.
JET
//--------------------------
//JET_RandomBaselineShift.
//A Javascript for Illustrator CS2.
//By James E. Talmage.
//Randomly sets the baseline shift of each character in a single selected textFrame.
//The topmost selected object must be a text object.
//It can be pointType, areaType, or pathType.
//But it must be normally selected as an object, not as a range of test.
//Just select the text object and then run the script.
//Reference the document.
var docRef = activeDocument;
//Reference the first selection in the document.
var textRef = docRef.selection[0];
//Get the number of characters in the selected object.
var charCount=textRef.textRange.characters.length;
//Set a variable to serve as alternate positive and negative value.
var shiftSign=1;
//Let the user determine the baseline shift range.
var shiftRange = prompt("Enter the distance, in points, by which you want the Baseline Shift to vary.", 10);
//For each character...
for(i=0; i<charCount; i++){
//...flop the positive/negative...
shiftSign*=-1;
//...reference the range multiplied by a random number between 0 and 1...
var curShift=Math.round(Math.random()*shiftRange);
//...shift the current character by that amount.
textRef.textRange.characters[i].characterAttributes.baselineShift=curShift*shiftSign;
}
//-------------------------
Thanks a lot for your fast anwser Mr. JET !
Nol.
Nol.
Draw a short horizontal path. Copy and paste it so the left end of the copy aligns with the right end of the original. Ctrl-D until you have a long line of dashes.
Copy the long line of dashes down a bunch of times.
Select all, Object>Transform>Transform Each, set for Preview, Random, and enter a number for vertical transformation, and a small angle for rotation if you wish.
Leave selected, then go to Type>Threaded Text>Create.
Apply any text to this threaded complex of paths, and play with the result.
Bert
Nol.