Illustrator Scripting :: Apply Current Fill Color To Stroke Then Adjust That Stroke Color's Build?

Apr 9, 2013

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.

View 13 Replies


ADVERTISEMENT

Illustrator Scripting :: Select Same Fill And Stroke Color

Aug 8, 2013

Select same fill color with java script and stroke color tool.

View 1 Replies View Related

Illustrator :: How To Change Stroke Color While Retaining Fill Color Using Eye Dropper

Jan 6, 2013

I have a question regarding illustrator. Let's say I have a circle with blue fill and red stroke. And I place an image in the illustrator file. Now I want to change the red stroke of my circle to let's say a purple color by sampling the color from the image.

How can I achieve that with a eye dropper tool? Every time when I try to sample a color from the image, the whole circle will change to purple instead of just the stroke? I have tried multiple key combination, shift, alt, ctrl but they all don't work.

View 7 Replies View Related

Illustrator :: Automatically Set The Stroke Color As Fill Color?

Nov 14, 2012

I have a file with two squares with red and blue fill colors respectively and transparent surrounding strokes. I'm trying to find a way to automatically set the stroke color of each square to the respective fill color. Is there an Illustrator script somewhere that would achieve that? I am not aware of an internal Illustrator command for this purpose.

View 8 Replies View Related

Illustrator :: Fill Section But Using Fill / Stroke Only Changes Line Color

Feb 17, 2013

I traced an image earlier, expanded it then wanted to change the line colour. For some reason I couldn't get this to work even though I've done it in the past. So, I used the magic wand to select the line then dragged it into my new document and changed the line colour.
 
Now, I want to change the fill on certain sections, however when I change the stroke it changes the colour of the line and when I change the fill it changes the color of the line.

View 4 Replies View Related

Illustrator :: Set Fill / Stroke Color Of Objects In A File

Feb 24, 2014

Everytime I set the fill/stroke color of objects in a file to 75, 68,67, 90 it resets it to 0, 0, 0, 100. It isn't consistent though... some objects accept the color.

View 5 Replies View Related

Illustrator Scripting :: How To Find Out Textframe Contains Stroke Color (or) Fillcolor

Jul 5, 2011

How to find out the textframe contains "stroke color" (or) "fillcolor" via javascript. Any sample.

View 5 Replies View Related

Illustrator Scripting :: Change Stroke Color Of Object In A Script?

Nov 26, 2012

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();    
}

View 3 Replies View Related

Illustrator :: Select Same Fill / Stroke Color But Not For Entire Document?

Apr 24, 2013

I am wondering if there is a way to use the "select same fill color" and/or "stroke color" for just a group of objects in a document as opposed to document-wide.

View 6 Replies View Related

Illustrator :: Auto Set Stroke Weight / Colors And Fill Color?

Mar 5, 2014

I'd like to make it easier for our 100,000 designers to use AI to make custom products using a laser cutter.
 
Current Practice
Designers open our AI laser cutting design templates, add their designs using the AI settings our online pricing system can read, then upload their designs to our website for instant pricing, making and shipping.
 
The Problem
Designers have to manually setup AI with settings that can be read by our online pricing system. If they get these settings wrong, our system can not read their designs. So they are rejected and can not be priced or made. This happens more often that you'd imagine.
 
The Solution
Designers do not like design rejections. So I'd like to eradicate them by providing our designers with a version of AI that provides the following settings only:
 
* Set document to RGB
* Stroke weight = 0.01mm
* Stroke colors = RGB 0, 0, 255 and 255, 0, 0
* Fill color = RGB 0, 0, 0
 
This will mean designers have a very limited number of AI choices, with nothing to distract them or to get wrong. Which will result in less (or zero?) design rejections. And products made faster than before. Rejoice!
 
Question
How do we program our AI laser cutting design templates so that when they are opened in AI, they auto set AI settings as defined above?

View 14 Replies View Related

Illustrator Scripting :: How To Select Similar Objects (by Stroke Color) Programatically

Aug 10, 2012

Is there a way to select similar objects (by stroke color) programatically?

View 3 Replies View Related

Illustrator :: Color Swatches In Toolbar For Fill And Stroke Are Not Working Properly?

Mar 17, 2013

The color swatches in toolbar for fill and stroke are not functioning as they should.  When I select an object on the artboard, the swatches display fine in the toolbar for what they should be.  However, when I double-click on those swatches from within the toolbar to modify the color, the color which comes up is #000000 instead of the actual color it should be. 
 
I am using 16.2.1 (cloud) for Mac OS 10.8.2
 
I've submitted a bug report.
 
Also, the eyedropper tool is buggy and occasionally places the #000000 into an object instead of the characteristics the eyedropper is selecting.  I don't have any hidden layers or weird groupings, it just randomly decides when it is going to work or not.
 
I've never had these issues on previous versions of illustrator and have been proficient in all versions since 2007.

View 2 Replies View Related

Illustrator Scripting :: Finding PathItems That Have No Fill And No Stroke

Jan 10, 2014

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.

View 3 Replies View Related

Illustrator :: How To Stroke Behind Other Stroke But In Front Of Fill

Jan 4, 2013

I have a shape with a black stroke and green fill.  I have a white line segment over it.  How do I get it so that the end of the line segment doesn't show over the black stroke of the object?  If I try to put the line segment behind the object, then the object fill hides it completely.
 
I'm new to illustrator and I've tried to search for an answer but I don't know the best way to accomplish what I want to do.  Seems like some combination of transparency or knockout groups and I've read a bit about this and can't figure out what I need to do.

View 3 Replies View Related

Illustrator :: Set Stroke Color In CC?

Jan 27, 2014

Just started working in Illustrator CC. I can't find the control to set stroke color.

View 2 Replies View Related

Illustrator :: Not Allow Stroke Color Selection

May 7, 2013

in control bar, far left color pull down, I can change fill but AI will not "let" me select the stroke to change that. Is there a trick AI now requires?
 
Used to be X would pick the other one; if fill was front, X would make Stroke be front and vice versa.

View 5 Replies View Related

Illustrator :: Changing Stroke Color Mid Path

Jan 29, 2013

If I wanted to change an objects stroke (outline) color for just part of the object, what would be the best way to go about that. Pro tip: Paint bucket tool in photoshop != the best way... it gets all pixel.

View 4 Replies View Related

Illustrator :: Adjust Color Of Pattern Fill?

Jun 23, 2012

Is there a way to adjust the color of a pattern fill without changing the actual pattern?
 
Sometimes I do this by overlaying another solid color fill on top of the pattern fill, and use multiply or other blend modes.  This works except when the pattern contains empty/transparent areas: in this case the solid color would pass through and affect the object below the pattern, which is unwanted.
 
So basically, is there a way to isolate the color change to a single object?  I've tried with "Isolate Blending" and "Knockout Group" with no success...

View 9 Replies View Related

Illustrator :: Need A Keyboard Shortcut For Setting Stroke Color

Oct 24, 2012

I need a fast method (Keyboard shortcut) to change stroke color to a specific color. Since I need to set it always to the same color. I'd like to skip the procedure of having to repeatedly pick red from the palette and simply have red chosen automatically using one click only. I tried recording an action, hoping I would later be able to assign it a shortcut but oddly when an action that records the setting of stroke color is played, it sets the FILL color to that choice color and instead of setting the stroke color (with which it was recorded).

View 4 Replies View Related

Illustrator Scripting :: How To Check Color Profile For Current Document

Oct 16, 2012

I'd like to create a script that checks the current document's color profile and checks it against a string, for example "sRGB IEC61966-2.1". My studio has a script that performs various functions to make sure that all the layers are visible/unlocked, checks for stray points, etc., and we'd like to add a check to the color profile because we handle a large number of files and this setting is overlooked a lot.
 
It's alright if this value isn't writable through script (we can just pop up an alert letting the user know that they need to change it), but I can't find where to actually read this setting! We're currently working on Macs and with JavaScript, but any nudge in the right direction.

View 11 Replies View Related

Illustrator :: Varying Stroke Color Used In A Section Of Closed Path

Apr 6, 2013

I'm using Illustrator CS6.I'm working with closed paths on an illustrated character. I have a leg overlapping a body for example. The leg is essentially a 4 sided shape but I only want a stroke on 3 sides. On the 4th side I don't want a stroke on it so that the leg blends with the body. I first thought about using the shape builder tool to merge the 2  shapes to see what that would look like but they won't merge for some reason.
 
Then I tried to use the width tool to drop the stroke on the 4th side down to a 0 width for the side I want ... but that didn't work either.how I can change a closed shape so that a section of the shape has a different stroke colour (i.e. none!) from the rest of the shape?

View 14 Replies View Related

Illustrator :: How To Create A Stroked Line That Randomize Each Stroke Color

Aug 6, 2012

I am strating out designing in illustrator and how to created a stroked line, -----------, with each stroke (  -  )  a different colour, like, each stroke having a different randomized color which differs from the next one. how to mask out parts of a template given to me by my school so i dont infringe that boundary when I add my lines to it.

View 11 Replies View Related

Illustrator :: Way To Adjust Paths To A New Stroke After Tracing?

Oct 22, 2013

I've used image trace to trace the outline of a street grid and expanded the trace into paths. However, after doing so, I realized I wanted the streets a bit thicker, so I increased the stroke value.
 
Is there a way to adjust the old paths to match the new outline? I tried saving it as a .jpg and retracing but the quality was subpar. Any way to "redo" the trace in the original file, or somehow tell Illustrator to move the paths to match the increased stroke? I need them to coincide once more with the edges of the streets. URL...

View 3 Replies View Related

Illustrator :: How To Adjust Stroke Weight On Path

Jul 21, 2012

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?

View 9 Replies View Related

Illustrator :: Not Able To Apply Gradient Along Or Across Stroke

Dec 19, 2013

Not able to apply gradient along or across stroke of an outline of a shape or a line drawn with the pen tool using Illustrator CC.

View 3 Replies View Related

Illustrator :: Apply Gradient Along Stroke

Jan 24, 2013

It seems that all these gradients-in-stroke options are only available for strokes that are aligned to the center of the path. I have tried to set inside and outside strokes, but i cannot for the life of me activate the right two options (even though they look like i can click on them).
 
Gradient-in-stroke options:

View 3 Replies View Related

Illustrator Scripting :: How To Fill Gradient Color In Textframe

Sep 3, 2013

I am working with scripting in Ai, fill gradient color in TextFrame. I search in this forum but the other topics fill color to path or line. For now, I can make a gradient color, but I don't know how to apply it to textframe.

View 6 Replies View Related

Illustrator Scripting :: Any Way To Select TextFrames That Only Have A Fill Color

Mar 11, 2013

I have a script that will select text Frames, but I have come into a situation where I need to exclude any text frames that do not have a fill color. I do not see a filled Boolean property for character attributes or text Frames. 
 
This is what I used to select all text on all visible and unlocked layers. I dont see a way to exclude textframes that have no fillcolor.
 
if (app.documents.length > 0 ) { 
var doc = app.activeDocument;   
var numTextFrames = 0;   
for (  i = 0; i < doc.textFrames.length; i++ ) {
try { 
textArtRange = doc.textFrames[i];
textArtRange.selected = true;
} catch (e) {}        }    }

View 6 Replies View Related

Illustrator :: Auto Switch Between Stroke Fill And Fill

Nov 20, 2012

I spend 12 hours a day in illustrator and some functionality seems to simplistic and ultimately annoying.I'm using Windows 7 64bit. Adobe Illustrator CS6
 
1. Please auto switch between Stroke fill and fill when I select text. 99% of my time is spent only using fill on text. I would rather manually switch to Stroke when I want to add a fill to it rather having to switch to fill each time.
 
2. Same for Stroke, from point 1.
 
3. Add an auto layer for Guides. When I am using the Scissors tool, the majority of the time I don't want to cut my guides up, I would rather instead cut up the shape below it. Again manually changing the layer to select the guide would be preferable.
 
4. I personally never use the Eraser tool and I switch to the Scissors Tool. Without fail every time I launch Illustrator I have to switch from the Eraser Tool too the Scissors tool. Please add cookies or something so I don't have to always switch to the Scissors Tool.
 
5. Move "Align to Pixel" toggle somewhere outside a file menu.

View 4 Replies View Related

Illustrator Scripting :: Apply Every Swatch Library Color To Path Items On Page?

Oct 1, 2012

I'm trying to write a script that applies a single swatch to a single path item and repeat for every swatch that is currently contained in the swatch library. This script that I have written is only applying the last swatch in the swatch library to every path item on the page. Currently I'm more concered with getting each swatch that is currently in the swatch library to be applied at least once before worrying about applying the same patch to any extra number of patch items compared to the swatches.length.

// Apply every swatch library color to path items on a page
if ( app.documents.length > 0 && app.activeDocument.pathItems.length > 0 ) {
doc = app.activeDocument;

[Code]....

View 11 Replies View Related

Illustrator :: Shortcut To Adjust Stroke Width When Drawing?

Dec 14, 2012

I'm looking for an existing, or a way to create, a shortcut that will adjust the stoke width in Illustrator as I draw. Something similar to the bracket key in Photoshop for changing brush size on the fly.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved