Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Illustrator error occurred: 1346458189 ('PARM')

$
0
0

I'm so sick of these errors,

never had an issue before CC

anyone know what is causing these errors?

 

have been using this script all day and now it bugs out on me.

error2.JPG

full script is below:

var doc = app.activeDocument;
var sel = doc.selection;
var TOmm = 2.83466796875;
Dim(sel);
function Dim(objs) {    for (var i=objs.length-1;i>=0;i--) { // loop through your collection of objects        var bounds = objs[i].visibleBounds; // Get visibal bounds, which are only visable bounds in some cases...        var b1 = bounds[0] /TOmm;        var b2 = bounds[1] /TOmm;        var b3 = bounds[2] /TOmm;        var b4 = bounds[3] /TOmm;        var W = Math.abs(b3-b1).toFixed(1);        var H = Math.abs(b4-b2).toFixed(1);        var txt = doc.textFrames.add(); // Create the text frame        txt.contents = "Size:  "+ H + " x " +W + " mm W";  // Adds contents to frame        txt.position = [objs[i].left,objs[i].top - objs[i].height - 20]; // Positions the frame  };  
};

 

Am I missing something in the quality of the Code?


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>