Copy link to clipboard
Copied
Hi. is there a script to load images into illustrator to a grid composition. I need only 1 artboard. The out put is to print a mural. I need to load aprox. 1600 images. Somebody in the illustrator forum recommended an In-design script, but I was wondering if there was a native illustrator script. I have not scripted eithor environment before.
Regards and Thanks,
Gavin
Copy link to clipboard
Copied
ready made? probably not, one would need to be created. Do you have experience scripting in other environments?
Copy link to clipboard
Copied
‌how do you plan to lay them out?
Are the images square? Or all landscape? Or a mix of different sizes and shapes?
if so is the plan to crop them all to squares. And just butt them up against each other in a grid.
1600 placed images is a fair whack. What size do you see the final mural.
That would be a 40 x 40 square grid. If each image is 10cm square then your mosaic is still 4 meters by 4 meters.
but scripting it would not be to hard.
Copy link to clipboard
Copied
Hi Qwertyfly,
Even am trying to do a similar insertion.
Inset an image something like this at a particular coordinates of X,Y.
Is this possible via scripting?
Copy link to clipboard
Copied
Maybe i don't fully understand what you're trying to do, but is Illustrator really the program you want to use for this project?
Copy link to clipboard
Copied
yes an image can be inserted at particular X,Y
but is the image placed or embedded.
what is the X,Y or where do I get it
what size do you want the image.
is it just 1 image, or a folder of images.
I can think of at least 10 more questions I would need answered before I could do anything.
if you want people to put time in to helping you then you need to provide good information on what you are trying to do!
Copy link to clipboard
Copied
Apologies for not giving full information....
Too busy for something planning in next week...
I found a sample code of how to draw a triangle from one of the forums.
Used the same code to modify and draw the triangle above, instead of an image.
Please see the code I've used, it may be helpful for any,
***
// Create 45 Degree Triangle
var doc = app.activeDocument;
var sel = doc.selection;
dw = doc.width;
dh = doc.height;
$.writeln("w,h", dw, dh);
wc= dw /2;
hc = dh *-0.5;
if ( app.documents.length > 0 ) {
//var triangleGroup = app.activeDocument.groupItems.add();
// Create a triangle and add text, the new art is created inside the group
//var trianglePath = triangleGroup.pathItems.add();
var trianglePath = doc.pathItems.add();
trianglePath.setEntirePath( Array( Array(0, 100), Array(100, 0), Array(0,0) ) );
trianglePath.closed = true;
trianglePath.stroked = false;
trianglePath.filled =true;
var redColor = new RGBColor();
redColor.red = 63;
redColor.green = 255;
redColor.blue = 79;
//t.textRange.characterAttributes.fillColor = redColor;
trianglePath.fillColor =redColor;
//trianglePath.strokeWidth = 3;
trianglePath.position = Array(wc,hc);
}
***
Copy link to clipboard
Copied
‌as the image you want can be drawn with simple vectors, that is the best option.
GGlad you found a solution.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now