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


ADVERTISEMENT

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 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 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 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 Scripting :: Select Objects That Fill Color In Document

Oct 14, 2013

If i want select objects that same fill color in document, I can use 'select - same - Fill color' function in Illustrator.
 
It's so fast. below 1 second.
 
But, If i want make it in Javascript, I can't do it like fast.
  
for(i=0; i<activeDocument.pathItems.length; i++){...}
  
If document have 10,000 objects, above script can't finish in even 60 seconds.
 
How Illustrator can traversal fast?
 
Is there something other way?

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 :: 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 :: 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 :: 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 :: 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 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 :: 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 :: How To Read Swatch Used For Fill Color Of A Page Item

Mar 21, 2012

Is there a way to read the swatch used for fill color of a page item?
 
I can read the fill color but I can't read if the color is a global swatch.

View 2 Replies View Related

Illustrator Scripting :: CS5 - Change Fill Color Of Selected Path Items

Apr 2, 2013

I'm trying to create a script in CS5 mac os10.6.8 that will change the fill color of selected pathItems. I need a simple script that will change a selected pathItem to cmyk values 2,3,15,0. I will then select this script and implement the action in a batch of 600 files.
 
I wish this process could be recorded as an action but when I record the action "add new swatch" I have to manually input the cmyk values, which will take forever for a batch of over 600 files.

View 15 Replies View Related

Illustrator Scripting :: Select All Paths Of Specific Color In One Document

Jan 7, 2009

I'm on Illy CS2, windows xp.

I want to open a doc, run a script that selects all paths of a color, say 255,0,0 or 50,0,20,4 and changes that color to black or another color I specify and also changes the stroke. Is this possible? I can't see how i would do it?

View 6 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 :: 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 :: Create Mirror Text And Stroke Text In AI Scripting

Mar 16, 2013

the Script of creating mirror text and stroke text in Adobe illustrator scripting.

View 4 Replies View Related

Illustrator Scripting :: Set Stroke Alignment From JavaScript

Jan 21, 2013

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?

View 5 Replies View Related

Illustrator Scripting :: How To Set To True Or False For Scale Stroke

Sep 12, 2012

does the document have a property that can be set to true or false for scale stroke? I didn't see it in the documentation, maybe there is another way?

View 1 Replies View Related

Illustrator :: Quick Way To Replace Fill With Stroke?

Feb 6, 2014

I have a number of filled objects in various colours.Is there a quick way to swap their fill and stroke colours all in one operation in the same way as can be done with single colours with Shift+X?

View 8 Replies View Related

Illustrator :: Pen Tool Creating A Fill When Only Want Stroke

Feb 9, 2013

I am creating a simple spider for a project. Initally I used the pen tool to make legs. It worked for a bit then all the sudden started filling in an area I didn't even draw with color. I'm not sure what I did to cause this to happen.

View 3 Replies View Related

Illustrator :: Set Default Fill And Stroke From Startup?

Feb 11, 2014

would it be possible to set no fill and 1px black stroke as the default fill when I start up illustrator?

View 1 Replies View Related

GIMP :: How To Select Fill Color

Aug 16, 2012

When I use the bucket tool to fill in an area, how can I select a color? It just uses black by default and I can't find a way to change this.

View 1 Replies View Related

Illustrator :: Assigning Stroke Attribute From One Shape To Fill In Another?

Oct 22, 2013

Unalbe to use eyedropper tool to pick up stroke attribute from one shape to use in fill of another shape. I shift click with my eyedropper tool on stroke but does not transfer that color to my fill color of other shape. Fill color shows correctly in tools panel but not in shape or control panel.

View 11 Replies View Related

Illustrator :: 3D Effect With Overlapping Line With Fill And Stroke?

Feb 16, 2014

How can I draw a continuous stroked line with a fill, so that it overlaps and covers the previously drawn part of the line? I'm trying to draw some text so that it has an effect like in fig. 2 of the attached picture, not fig. 1. Is it possible to make somehow? For a simple image like this I could of course manually remove the few lines, but for a more complex text it's not possible, and I can't seem to find a solution myself.

View 7 Replies View Related

Illustrator :: Permanently Showing Paths Without Stroke Or Fill

Aug 31, 2012

Returning to Illustrator after not using for a long time.
 
How can I permanently show paths created for example by the pen tool when I create them with no fill or stroke attributes - for example a set of contours?
 
If I set the view to outline (control + Y it does this but puts them on a white background meaning I can't see underlying layers.

View 2 Replies View Related







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