Illustrator Scripting :: Altering Stroke Weights Of Path With Multiple Strokes?
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.
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.
In Illustrator CS4, I could select a path, click into the stroke weight selector on the Control Bar, and be presented with 0.25, 0.5, 0.75, and then 1 - 40. From the keyboard I could use the up/down arrows to move among each of these options. I found this handy because 0.5px and 0.25px are the line weights I most often use.
Ever since I upgraded to Illustrator CS5, the sub- 1px options in this selector have disappeared.
I've edited the default graphic style, to no avail. And yes, I have unchecked everything I know of with regard to "snap to pixel grid". I doubt that would be the problem anyway, because I am able to type "0.25px" and get a 0.25px weighted line. Which is what I have been doing ever since the upgrade. But I am annoyed at having to do it this way and the thousands of microscopic frustrations over the months have gradually accumulated into an ulcer and a disturbing addiction to prescription dandruff shampoos.
Did Adobe remove this from CS5 for the hell of it, or am I missing something obvious?
I have been using Illustrator for almost 10 years and have never run into this one. When enter a stroke weight on a line with a decimal point like .25 or 4.5 is keeps rounding the number up. For example I enter 0.75 and it makes it 1 point or I enter 5.5 and it makes it 6 point. Whether I enter the number manually or pick from the drop down (0.25, 0.5 or 0.75) it keeps rounding my strokes to even numbers.
This illisutration has many paths with different strokes on it. When I place it in my layout and decrease the entire illustration to the desired size, the stroke gets too thin. How can I increase all the strokes at once?
Is there a way or an option I am missing to convert my regular paths to a path stroked with a brush profile,while maintining the proper stroke width?
For instance, I have a regular line with a stroke of 5 and then add a brush profile, which then converts the original stroke to whatever the brush was made at.
I want to paint texture into an image without adding or changing color.
The best way to explain my goal is to visit this website with very fine work by Mark Wainer.
[URL]....
My own website is [URL]...
He has used Buzz, as have I, to change photos into watercolor like images, now defunct and taken over by Topaz software, who now market Simplify in place of BUZZ.
After running the filter, he has added brush strokes to add texture without altering any color—just adding a texture looking like impasto or thick brush strokes.
I have searched everywhere and view lots of video but cannot find a technique to get the result I want.
I am sure there is way to do this, probably with brushes in CS6 and unable to find or create a way to achieve this effect.
I'm trying to figure out a way to automate a simple, yet repetative process I do countless times a day. Ideally, I'd like to tie it to a keystroke to speed up my workflow.
I work on line art and colorways for footwear, so the way I'm coloring these shapes and strokes break apart the different materials and pieces of the shoe.
While coloring line art, I work with Pantone spot colors as fills for closed path objects. I then have to manually apply that same color to the stroke, set the stroke to 0.5px weight, convert that spot stroke color to CMYK, and add 15% to the K value.
I found some code in an older post for applying the actively selected object's fill color to the stroke, but I'm having but I'm having trouble with the next step of figuring out how to take that spot stroke color and convert it to a CMYK build that I can then add 15% black to. Is this something that's even possible? I've spent about an hour playing with the script and have only had luck matching the fill color or turning the stroke white.
I'm not sure what I did to make this happen or how to change it back, but for some reason when I change the size of an object/line it changes the stroke weight as well. (For example, if I drew an ellipse with stroke weight 2 pt, and then increased the size the stroke weight would be 2.856 pt or some such number instead of 2 pt.) How to change this back?
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).
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.
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?
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.
I'm trying to set the stroke style for a path item I've drawn through JavaScript, however I can't find a way to set the stroke alignment for my path item.
I've checked the Illustrator JavaScript reference but I can't seem to find that option in there.I would expect something like:
pathItem.strokeAlignment = StrokeAlignment.OUTSIDE; // This doesn't work, what is the correct way to set the stroke alignment from JavaScript?
If I change the option in the Actions Panel it comes up as 'Set Stroke/Alignment: Outside', so there must be an equivalent way of setting it from JavaScript. Is there a way of converting Actions to JavaScript so you can see which properties and attributes are being set on the object? What is the correct way to set the strok alignment from JavaScript?
So here's what I wrote to try and find and delete all pathItems within a document that lack a fill and lack a stroke.
var doc = app.activeDocument; for (i=0; doc.pathItems.length>i;i++) { alert(doc.pathItems[i].name + " " + doc.pathItems[i].fillColor.name)
[Code]....
But alas, neither seems to do the trick, the first one makes sense why it wouldnt work since it says that the color is "undefined" but it isnt a string called "undefined." So I'm not sure how to go about this at all now.
I need the finished script to create a rectangle with no fill and a 20% gray stroke to outline each artboard. I dug this up off these boards, which works perfectly except the rectangles created have no fill or stroke. certainly save me a lot of time drawing rectangles on a daily basis.
#target illustrator var docRef = app.activeDocument; var artboardRef = docRef.artboards; for(i=0;i<artboardRef.length;i++){ var top=artboardRef[i].artboardRect[1] ; var left=artboardRef[i].artboardRect[0]; var width=artboardRef[i].artboardRect[2]-artboardRef[i].artboardRect[0]; var height=artboardRef[i].artboardRect[1]-artboardRef[i].artboardRect[3]; var rect = docRef.pathItems.rectangle (top, left, width, height); rect.fillColor = rect.strokeColor = new NoColor(); }
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.
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}
I mostly use photoshop for lineart on some pictures I do but the biggest problem is that the lines are not really smooth. I want to Use Illustrator just to ink the pen tool paths and then return it to photoshop to color. This is a recently finished picture I did using the Pen tool traced on top of a sketch I scanned. I want to know if there is any way I could do something similar to "Stroke path" in Illustrator so that I could get this picture done with crisper lines and if not.
For example, if I created a square and wanted the 2 sides and bottom to be 1 pt stroke and the top to be 0.5 pt stroke or no stroke - is this possible?
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.
I'm unable to adjust the weight of a path. Here's a 40 sec video (no audio, 1920x1080) that demonstrates I know how to adjust the stroke weight on a path, followed by a demo of it not working when I try to adjust it:
[URL]....
Here's what I do in the video:
First, on a path that allows the change:
Select an elipse.Increase the stroke weight of the elipse.Control-Z to undo.Decrease the stroke weight of the elipse.The above demonstrates I know how to adjust the path weight (at least I think it does).Next, on the path that doesn't allow the stroke width to be reduced: Select path. Increase stroke weight to demonstrate it increases.Control-Z to undo.Decrease the stroke weight to .25 to demonstrate it does not reduce in size.
What do I need to do to decrease the weight of the path I am trying to adjust?
i have a line art drawing and have expanded the strokes to paths. now i'd need to turn part of the paths back to strokes and can't find an (easy) way to do it.
inserted is an example of the situation. instead of closed path i'd like the form to be a stroke.