Copy link to clipboard
Copied
So, for no reason whatsoever Illustrator started messing either the artboards sizes and/or their position to numbers with decimals:
If I create 20 artboards, even if the first one is positioned at a round number, the subsequent ones will show a decimal number and this will mess when I try to align shapes to the center:
Copy link to clipboard
Copied
function fUnit(pUnit1,pUnit2,pValue){ // convert units like mm to px
var vValue = new UnitValue (pValue, pUnit1);
return vValue.as(pUnit2);
} // end of function