Copy link to clipboard
Copied
I set type for highway signage, and the typefaces get very close to being perfectly at 1/1000th, but are always a few 10,000ths up or down from what I need when outlined. Each word has a specific exact width spec'ed in 1000ths. Currently I have to manually click in the measurements palette, select the last two numbers and change each width manually. A script to change the width up or down to the next 1000th would save me work every day.
This should round up/down the height and width of a selected path to 3 decimal places.
var h = ( app.selection[0].height ) / 72;
var w = ( app.selection[0].width ) / 72;
app.selection[0].height = ( h.toFixed(3) ) * 72;
app.selection[0].width = ( w.toFixed(3) ) * 72;
Copy link to clipboard
Copied
This should round up/down the height and width of a selected path to 3 decimal places.
var h = ( app.selection[0].height ) / 72;
var w = ( app.selection[0].width ) / 72;
app.selection[0].height = ( h.toFixed(3) ) * 72;
app.selection[0].width = ( w.toFixed(3) ) * 72;
Copy link to clipboard
Copied
Amazing, thanks, I'll give it a try and report back.
Copy link to clipboard
Copied
Works great, and I managed to puzzle out how to add 1000th or subtract 1000th in separate scripts. Thanks again!