Illustrator Scripting :: Applying Multiple Strokes With JS
Apr 17, 2012
how to apply multiple strokes to a path with JavaScript? Assigning strokes width, caps, position in stack (my particular concern)? All i can do at the moment is to apply a single stroke.
View 5 Replies
ADVERTISEMENT
Mar 24, 2013
I have created a path with multiple strokes, which differ in weight and color. I can save that as a profile but it's really tedious if I want to alter the different colors and stroke weights.
I can't seem to do record an action which will automatically alter those parameters (f.ex. raise each strokeweight by 10pt.). All I get is just an action that will recreate the altered state during recording (f.ex. stroke weights 20, 10 >--Action--> 15, 5). I cannot start the action and raise or lower my stroke weights at once based on the current parameters.
View 1 Replies
View Related
Feb 3, 2013
Example of applying text shadow in AI script.
View 3 Replies
View Related
Feb 24, 2013
I have a bit of a problem with apple script, I'm creating a Text item and setting the stroke to 0.4pt then i want the stroke miter limit to be set to 2 but it wont work i get :-
Adobe Illustrator got an error: Can’t set properties of text frame 1 of layer 1 of document 1 to {stroke miter limit:2}. (error -10006) but im am able to apply a stroke miter limit of 2 on a path item, is there a way of converting the text frame to a path item then applying the stroke miter limit to it.
on TicketFront_(posX, posY)
tell application "Adobe Illustrator"
activate
set ticketItem to make new text frame in theDoc with properties {contents:{"Some Text"}, position:{(35.7 + posX) * 2.834645, (173.5 - posY) * 2.834645}}
set properties of the text of ticketItem to {text font:text font "Raleway-Thin", size:5.54, justification:center, fill color:{class:spot color info, tint:100.0, spot:spot "PANTONE 4535 U" of document 1}, stroke color:{class:spot color info, tint:100.0, spot:spot "PANTONE 4535 U" of document 1}, horizontal scale:126.46, stroke weight:0.4}
[code]...
ive also tryed putting convert to paths ticketItem in the script which converts the text to paths but the stroke miter limit still dont work.
View 17 Replies
View Related
Mar 23, 2013
I am using stokes to mask out a shape I want. I want to remove these strokes altogether but retain the masked shape.
So for example the below image has three circles with a white stroke to form the shapes I desire.
I am perfectly happy with this when it is on a white background but I want the strokes to be transparent rather than white so that they cannot be seen on a non-white background (see below).
Obviously if I just make the strokes transparent I lose the desired shape.
This is what I am trying to achieve (this was done in Photoshop but I want to achieve the same in Illustrator).
View 9 Replies
View Related
Jun 16, 2012
I make a graphic style with more than one stroke. I choose the brush tool. I click the graphic style. I draw a line. only one of the strokes is applied to the path. I have to select the path again, and then click the graphic style for it to apply."New art has basic appearance" is unchecked.It's time consuming and frustrating. And it takes the punch out of one of the better additions to the program.
View 7 Replies
View Related
Feb 27, 2013
I would like to know, whether is it possible to make soft blends between all objects of the person in the art I am creating. The problem is, that I want to make very smooth transition between all paths(brush strokes) in the file. I tried the blend tool, but it didn´t work good for this purose. Then I tried to blur or feather all objects, but the result wasn´t good as well. Opacity masks would be too complicated for all those strokes. Is it possible to make this work for all brush paths in the file?
View 1 Replies
View Related
Jan 13, 2013
What is the correct technique for selecting paths with multiple strokes of the same colours?
Select Same doesn’t seem to work properly since it only selects one of the stroke colours.
I have several paths with the same stroke colour makeup yet they don’t behave as if they have the same appearance, depending on which of a path’s several strokes is selected in the Appearance panel.
View 4 Replies
View Related
Nov 2, 2013
I designed a logo for some family friends, and the main part of the logo is hand-drawn, and it is made of multiple (a TON) of strokes. The company is getting t-shirts made, and the t-shirt company contacted me to get a "vector file with the fonts outlined." I know quite well how to do this on actual fonts, but how to outline a series of strokes.
View 5 Replies
View Related
Apr 9, 2012
I´m aware that Illustrator doesn´t have multiple artboards options for JPG as it does with eps, or other formats, but is there any workaround for this? Looping current artboard and exporting them to JPG or something. Or maybe there is someway to force the "save multiple artboards:true" in JPG?
export document currentDoc to file exportFolder as JPEG with options ¬
{class:JPEG export options ¬
, quality:100 ¬
, artboard clipping:true ¬
, artboard range:1 - 2 ¬
, save multiple artboards:true}
View 3 Replies
View Related
Oct 16, 2012
I'm intermediate (at best) with Illustrator. I'm using CS6 on a 2009 iMac. How to make Illustrator ignore stroke weight/cap/join settings when I'm applying a live rotate/multiple copy effect on a group of paths? Currently, Illustrator sets the rotation point to the outermost part of my stroke (figuring in the strokes atrributes), but I only want it to calculate the from the path's structure: the coordinates of my designated anchor point.
Here's the top/right group of paths with a rotate/ 3 copies effect of 90 degrees. Looks problem-free at this view.
Here's that top/right group of paths with the addition of a reflect/ 1 copy effect of X-axis. Still no apparent problems.
But here's a close up of the misalignment of corner points. As shown, the Transform effect is based off the strokes attributes (the tip of its corner), not the actual location of the corner point.
It does not apply different cap/corner styles or stroke alignments; that only slightly nudges the pivot point to the center.
Plus, this one point stroke is somewhat arbitrary. I only set it so in order to see my dynamic effects.
Tweaking the vertical/horizontal moves effects of the rotated/copied elements won't support because this art will later undergo lots of alteration, mostly changes in stroke weight (maybe even variable stroke width).
I need the skeleton of my structure to snap together precisely.
Any solution, no matter how roundabout, would save this project!
View 4 Replies
View Related
Mar 1, 2012
I need to add images in multiple artboards (each image in different artboards)
Initially i added an artboard and placed the image
Dim illus_doc As Illustrator.Document
View 4 Replies
View Related
Sep 27, 2012
I have been tying to figure out how I could easily embed multiple linked images easily. I have some 1000 .svg images which have about 1-7 .tif images linked in to them. I now need to get those links embedded and becouse of the amount of images I'm hoping to make an action out of it. I have a script to embed single image in .svg but haven't have luck with multiple embeddings.
View 9 Replies
View Related
Feb 6, 2014
I have about 300+ product labels that are in Illustrator, and some of them have an incorrect rich black color swatch. What I have been doing is going through and changing the color pallette to change them manually. Essentially going to the instance of black and changing them to regular black.
Is there any sort of script that can do this? The files are in CMYK.
Otherwise I have a lot of monotonous file editing to do.
View 4 Replies
View Related
Apr 23, 2013
How can I get width that multiple selected items? (Not grouped.)
//---------- source code ----------
var mm = 2.83464566929134 //unit conversion. (point->milimeter)
var W = docRef.selection[0].width/mm;
alert(W);
//---------- source code ----------
View 3 Replies
View Related
Nov 4, 2013
Is it possible to have a script that would split up an Illustrator file that contains a number of groups of elements into individual files... for example, here is a download link for a file that has different types of moustaches and I want each moustache as an individual file... I have hundreds of Illustrator files like this that have 4, 8, 15, 20 or more illustrations all bunched onto the one file that I need to split up. I'm using CS4 [URL]....
View 3 Replies
View Related
Sep 27, 2013
I have script where I select items on multiple artboard but I can't seem to get get active art board of the selected item. Is this possible?
each artboard has a text item and I would like them in the same position on each of their own artboards that they are already one. right now it adjusts them all to one artboard. here is what I have so far
doc = app.activeDocument;
for(i = 0; i < selection.length; i++){
var firstItemPosition = doc.selection[0].position;
doc.selection[i].position = firstItemPosition;
var activeArtboardIndex = doc.artboards.getActiveArtboardIndex();
alert(activeArtboardIndex);
}
View 10 Replies
View Related
Jul 19, 2012
Is it possible to save illustrator XMP thumbnail previews by artboard? It seems like Illustrator saves a single thumbnail with all art regardless of the number of artboards.
If there is a property that can be set to save multiple thumbnails to the XMP packet by artboard when saving to a native Illustrator file?
View 3 Replies
View Related
Apr 24, 2013
I want to create a dialog consisting of multiple buttons. As a result I want value which button was pressed by user.
The script (shortened to problematic part):
// I'm looping through elements on layer 'warstwa' from kolorStart to kolorStop, 'k' is used for number buttons
for (i = kolorStart, k = 0; i <= kolorStop; k++, i++) {
myButton[k] = myButtonGroup.add ("button", undefined, warstwa.pageItems[i].contents);
myButton[k].label = warstwa.pageItems[i].contents;
myButton[k].onClick = function () { wybranyKolor = myButton[k].label; myWindow.close(); }
}
The result:
But buttons don't work, wybranyKolor returning 'undefined'. If I change "wybranyKolor = myButton[k].label" to "wybranyKolor = myButton[k-1].label" I get proper answer but it is the same for all buttons so it looks that all buttons have the same action assigned. How to get each button to has unique name which can be passed to variable?
Probably I can achieve the same with radio buttons' list but with buttons it is one click less for the user.
View 7 Replies
View Related
Feb 11, 2013
I have 30 separate illustrator pdf files (one page each) that I would like to make into one Illustrator CS6 file with 30 artboards. Is there any way to do that without having to import one by one?
View 1 Replies
View Related
Apr 5, 2013
I have about 500 files that I need to change one line of text in. Example. File name is XXX 001, the line of text is the file name so it would read XXX 001. XXX 002... etc. up to XXX 500. Is there a way that I could automate it opening, changing this line of text, saving and closing?
View 1 Replies
View Related
Sep 13, 2013
I've found some very good scripts like the MultiExporter.js by Matthew Ericson and Export Layeres as PNG files by Johan Otterud, however none that quite fit our needs. We need an Illustrator script that takes an AI file and spits out an .eps, .jpg (for print), multiple .png sizes for web, and .pdf. We have an extensive download library for members that constantly change and rotate with new logos, print materials and other graphics.
I was hoping that there was some kind of script that would cut some time off of exporting all the different versions each time.
View 1 Replies
View Related
Oct 1, 2012
How can I repeat text several times and put it into a circle with the words continuously repeated into the circle if that makes sense.
View 2 Replies
View Related
Aug 8, 2012
I am trying to turn every layer in my .ai file to a raster image without flattening to one layer.
-The big issue I am dealing with is the agency that just built a paralax site for us refuses to export to PSD. I have tried every possible way to do this but keep getting the file is to big message. To add to it they had it all on 1 layer. I was able to release to sequence, but now am trying to see if rasterizing the objects will work.
View 1 Replies
View Related
Dec 8, 2012
I have an Illustrator document with one layer (named Layer 1).In that layer are lines, rectangles and text.Is it possible (in script) to: make 3 additional layers named NL, EN and GEselect and cut all the text in Layer 1paste that text in the same place in the layers NL, EN and GE
(Step 2: select all text items and Ctrl-X)
(Step 3: select proper layer and Paste in Place in that layer)
I know this can be done with an action (I did that allready) but the reason I want to script this is because I have to combine this with another script which takes care of colorizing stuff.
View 5 Replies
View Related
Nov 1, 2013
I have a couple of thousand old cliparts in .wmf format that I have to convert to .ai. What I need to do is simply open the .wmf, store it as .ai in exactly the same location.
Actions didn´t work because the files are in mutliple folders and subfolders. "Actions" keeped saving all the ai-files in the same folder. Which is kinda weird since this doesn´t happen when using the same action in PS.
Sure, there are some quality issues with converting wmf to ai - but for what we´re plannning the quality is sufficient.
CarlosCantos script at [URL]..... looked like the thing to do. Loaded it in apple script, patched the lines to open .wmf and saved it in the Illustrator script folder, but all I got was a bunch of error messages.
View 10 Replies
View Related
Jan 21, 2014
I have been looking for a solution to automate a printing and ordering process. I have a design template with 2 pages both 8.5x11 in size. One page represents the front and other the back for double sided printing. I have 6 different images per sheet so in my links panel I have 12 total links, 2 of each. I was wondering if there is a script to update all the links with the same filename with other image? Currently I have to search through all the images and update each one.
I have 6 artboards dividing the 8.5x11 sheet proportionatly. Each artboard represents a different order. Is there a script to write the linked filename to the bottom corner of each artboard?
View 5 Replies
View Related
Mar 27, 2013
I can't figure out the proper commands to fill out and complete the script below. What I am trying to do is:
- Create a new document using one of the Profile presets (or have the New Document dialogue open so I could select the profile, size and bleed)
- Make 3 layers, each with a diferent name
- Create a rectangle the size of the artboard on the bottom layer, with a swatch stroke and no fill
- Create a rectangle the size of the bleed on the middle layer, with no stroke or fill
Like I said, I haven't gotten far at all. I've read through the basic scripting guides and I'm just not understanding all of the language needed to string things together.
tell application "Adobe Illustrator"
make new document
set topLayer to make new layer ¬
at beginning of document 1 with properties {name:"Vector"}
set bottomLayer to make new layer ¬
at end of document 1 with properties {name:"Through Cut"}
end tell
View 6 Replies
View Related
Aug 12, 2013
I try to open mulitple ai files through palette dialog but it fails on Error:8702, there is no document. But if i change to var win = new Window ("dialog", "Batch"); the open file works well.
var txtSourceFolder = win.add("edittext",undefined);
var btnOk = win.add("button",undefined,"Run");
btnOk.onClick=function(){
try
[Code] ....
View 2 Replies
View Related
Dec 19, 2011
How to make the following script for adding serial numbers apply to multiple files in a selected folder?
var docRef = app.activeDocument;
with (docRef) {
var docName = name.substring(0, name.lastIndexOf('.'));
var artRight = visibleBounds[2];
[Code] .....
View 6 Replies
View Related
Aug 13, 2012
How can I repeat the same clone stamp or healing brush marks on multiple images? I often shoot multiple versions of the same still life product and have the occasion to make the same brush strokes on each of a half dozen or so images. Most the time I use clone stamp or the healing brush.
Is there a way to repeat the same brush strokes on multiple images?
View 9 Replies
View Related