Select same fill color and stroke color

any one help me to select same fill color with help of java script and stroke colot too

Not saying it cant be scripted but what about just via the Illustrator "Select" menu:
Select > Same > Fill & Stoke
Select > Same > Fill Color
Select > Same > Stroke Color

Similar Messages

  • Select same fill color/stroke color but not for entire document

    As the title imply's, 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.
    Thanks for any help you can provide!

    Did you make the group into an isolation group?
    ( in the Control bar.)
    Or else you can select the objects you want to change, then Select Inverse and lock or hide.
    Isolation groups are usually handy for this kind of work though.

  • Select Same Fill

    When I select an object and then go to the menu Select/Same/Fill Color, it selects other objects with the same fill just like it's supposed to... However, when I look at the Color Palette, the fill box shows a question mark. Has anyone else experienced this? If so, do you know why?
    I would expect the Color Palette to show the fill color with the associated CMYK or spot color percentages.

    Okay. I figured it out.
    The culprit was 4 stray text strings that never had text typed into them (see first image) that were hiding off to the side.
    When I selected only those text strings, the fill registered a different color (see second image).
    Once I type text into the strings, the select similiar fill does not select the text strings anymore (see third image). It really should not select the text strings regardless if there is text there or not as the fill was a different color all together. A minor glitch for sure.

  • Apply Fill Color to Group Item with Applescript

    Is it possible to set the fill color of a group item using applescript and CS3? The group contains paths and text that have the same fill color with no strokes.I am able to select the group and delete it or move it (with applescript) but have had no success in setting the fill color.
    Thank you in advance for help on this question. And thanks for everything I have picked up from browsing.

    Now that I am addressing the path items and text items of the group separately I am having some success. Now I am having difficulty getting the correct terms for assigning a Spot Color to the file. Here is a piece of the script.
    This works:
    tell application "Adobe Illustrator"
    set openDoc to document 1
    set ftClr1 to (first group item whose note is "Front3") of openDoc
    set ftClr1Paths to path items of ftClr1
    repeat with thisPath in ftClr1Paths
    set fill color of thisPath to {red:255}
    end repeat
    set textFrames to text frames of ftClr1
    repeat with thistext in textFrames
    set fill color of every line of thistext to {red:255}
    end repeat
    end tell
    Need help to set the fill color to a Spot Color that already exists in Swatches.

  • Fill color not bound by paths???

    Greetings. For some reason unknown to me, when I select a fill color for an object, the fill color expands beyond the boundary of the object. I've tried working with the pathfinder tools, specifically the Unite function as well as the Object, Group function with still no luck. Although they may appear as one outline, many of the strokes were laid seperately which is why I thought the Group and Unite functions would be the key. BTW, Almost forgot, tried the Compound path function as well which did alter the area of the fill but wasn't able to control it(fill) though. Any ideas how to accomplish a simple fill within the boundaries of a complex object?
    Please help... already spent several hours trying to figure this out on my own.

    Best way to do this is make the outline one path then the toes are drawn over that path now you fill only the foot path.
    Since the toe divider lines are on top of the foot path you do not have to restack the paths.

  • Startup file with fill and stroke

    in Illustrator CS on the Mac the default startup is fill white and stroke black at 1 pt.
    I want to change it to fill none and stroke black at .5 pt.
    How can I do this. Thanks

    If indeed you are talking about CS (AI 11) then go to Applications>Adobe Illustrator>Presets>Startup-CMYK or RGB. Make an object with the desired characteristics and Option-drag the object to the default swatch (the left most one in the Swatches Palette). Save and restart AI. Open a new document and check the default. It should be as you want.

  • Color Swatches in Toolbar for Fill and Stroke are not working properly.

    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, but want to know if anyone else has had this issue and what they did to resolve the issue.
    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.

    Double click the eyedropper, and turn on appearance, is off by default.
    For your #000000 color problem that also likely is related to appearance setting. You may have for example have some with #000000 at the character level, and another color at the type level.

  • Problems with "no color" in the "Fill and Stroke"

    I am having problems with “no color” in the “Fill and Stroke” function of Flash CS4 Pro.
    I had been using CS4 for 10 days and everything worked fine. Then I tried experimenting with various color combinations (along with “no color”) for “Fill and Stroke” for a simple button. Suddenly CS4 locked up on me while I was working with the “color panel”. A second color panel appeared in the upper left corner and the program was not responding. All I could do was to end the CS4 task.
    After that, whenever I created even a simple rectangle, at first the colors would appear as indicated for “Fill and Stroke”, but when I selected the object to see its properties, either the stroke or the fill color box would have a red slash line, indicating a “no color”, and I couldn’t select the color box to change it using the ink bottle tool, although the other box worked fine.
    Rebooting did not help. So I uninstalled CS4 (and didn’t keep the preferences), rebooted, then reinstalled it. The problem was still there. Logging on as another user didn’t help. I tried restoring the Windows system to before I installed CS4 and resinstalling it and that didn’t work. I have a disfunctional CS4 now and I don’t know what to do to fix it. Please help me. Thank you.

    Have you updated flash to 10.0.2?  Have you played around with a bunch of different selections, objects, and so forth to see if this box is always incorrect?  I think there's some particular selection (order of selecting things, and so on), where the color swatches in one location don't work as expected. However, it should not happen all the time and from what I recall it was fairly easy to work around (I can't even figure out what this was - so probably not it, as it seems hard to run into or perhaps now fixed).
    Also make sure you have the stroke selected - if you don't have everything selected, either the fill or stroke will show no color and dim depending on the selection.

  • How can I change the default fill and stroke colors for new shapes?

    As you can see in the following screen recording, after I change the stroke and fill color, all my subsequent rectangles are created respecting these new colors. But then when I delete all the rectangles, choose the rectangle shape tool once again, and start creating new rectangles, they start getting created with another color I had used some time ago (and I don't know how did it become the default color).
    So how can I change the defaults, so that the fill color is say #ddd, and the shape has no stroke at all?

    When you have the shape tool selected you will see in the tool bar below - file edit etc a fill and stroke. This is where you can change the colours.
    You can keep drawing your shapes like you did in the video but then select the rectangle and change the colour from this tool bar. The reason it changes will be because you changed the colours you were using (foreground / background) that display in the left side tool bar.

  • How can I select and delete the fill color (white background) of a live trace (B&W) with in an actio

    How can I select and delete the fill color (white background) of a live trace (B&W) with in an action set?
    Illustrator CS4 in windows XP.

    Maybe Li[ve trace] is not t]he way[ to go
    I have some suggestion one leave it as is and use a blending mode of multiply to give it a color background like this
    leave it as is make it a grayscale tiff import int Illustrator and color it it in Illustrator like this
    Or trace over it with the brush tool aand then give it a color ground.
    Or do the original over and do a cleaner job with no tone or a minimum of tone. Then Live trace.

  • How can I apply a current fill color to a stroke, then adjust that stroke color's build?

    Hi all, 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 helps to 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. Thanks for the help!

    ok try this one, I added the spot color option
    // make stroke color same as fill color + 15% black increase
    if ( app.documents.length > 0 && app.activeDocument.pathItems.length > 0) {
        for (var a=0; a<app.selection.length; a++) {
            try {
                    var sel = app.selection[a];
                    var fillcolor = sel.fillColor;
                    if (fillcolor.typename == "CMYKColor")
                        var cmkycolor = fillcolor;
                    else if (fillcolor.typename == "SpotColor")
                        var cmkycolor =;
                    var col = new CMYKColor;
                    col.cyan = cmkycolor.cyan;
                    col.magenta = cmkycolor.magenta;
                    col.yellow = cmkycolor.yellow;
                    var black = + +15;
           = black>100 ? 100 : black;
                    sel.strokeColor = col;
                    sel.strokeWidth = 0.5;
            catch (e){alert(e)

  • Can I change the fill color of an entire row based on what's selected in a pop-up menu in the first cell?

    I have a pop-up menu in the first cell of every row with three choices (and I may add more at a later date).  I want the fill color of the row to change depending on which thing is selected.  Is this hard to do?

    In essence the same as Wayne's answer, but with a slight modification to fit  to duplicate your 'color the whole row' specification. The final result, with Table 2 slid behind Table 1, is shown.
    Table 2 is a single column table with the same number of rows as Table 1. The table is resized to match the full width of Table 1.
    In A2, use the formula =Table 1::A2 to copy the value from that cell in Table 2. Fill the formula down through the rest of the column.
    Select all the cells in Table 2 (except the header row), and apply conditional formatting rules such as those below.
    Note that the Conditional Format rules are set to apply the same colour to text and fill in the cell, so that the text disappears.
    When Table 2 is ready, select it, then go Arrange > Send to Back.
    Before sliding Table 2 behind Table 1, Select Table 1 and use the Table Inspector to set the Cell Background to None (see red arrow in illustration). If This table has a Header column, you need to select the header cells independently and again set the Cell Background to None.
    Now select Table 2 and drag it to a position partially under Table 1. When you see the blue alignment guides on both sides, or at the top and bottom, of Table 1, release the mouse button and use the arrow keys to nudge Table 2 into its final position.

  • How do I auto set stroke weight, stroke colors & fill color?

    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!
    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?
    Thanks so much.

    Ponoko wrote:
    Your first point - yes, that's what our system does currently. As a result designers get lots of 'how to fix' messages as a result of design rejections. We wish to reduce these rejections and resulting 'how to fix' messages by limiting their choices in AI - because this is where the problems are created.
    Ok, yeah gotcha, so customers/designers think they do it right (cough/laugh) upload, then get surprised to find out they didn't by your upload system. That's kind of what I thought. I feel your pain. ;-) I sense you want to reduce this aspect to keep the customers/designers happy and thinking they do nothing but work magic all day right? ;-) So you don't want to lose customers in the midst of frustration of file rejection thinking there files are right and your system is certainly wrong, when in fact it's the opposite. Good luck explaining that to a designer however, right? ;-)
    Ponoko wrote:
    Your second point - You go on to talk about using a complex "action" we could distribute within the design templates. Although I suspect this is different, the path we're thinking is to include something in the templates that, when imported into AI, sets AI with the color palette we need, line weight we need. Possible?
    As Monika hinted at you can't rigidly restrict or control what a user is allowed to do and use in Illustrator. You can try to reduce the parameters by saving the file as a Template.ait file, but even then they can muck about all day until they mess things up again, plus you have no control whatsoever even then as to whether they use fills, the stroke weights, etc. That is why I mentioned various things to manipulate the file once they deem it completed and ready to submit/upload. Basically a method to fix what they messed up or did incorrectly and instead set things as they should be for submission as I previously mentioned. I mentioned you may be able to create a complex Illustrator "action" action.aia that they run to process these requirements. I am not sure if such an action could be accomplished as all inclusive (perhaps though) otherwise you could as stated do it through scripting and a script they run: script.jsx to prepare the requirements, or an actual standalone helper app you create and provide like I mentioned above as well.
    I see for CorelDRAW & Inkscape you require SVG, why not change that for Illustrator also so all your 2D app submissions are SVG based? Then manipulate the SVG server side, point out the changes and why and have the customer approve the new modified SVG Preview of the needed changes and move along with the process from there? Make all the requirement changes on the server by manipulating the SVG. You should have access to all of the requirements: RGB color model, stroke weight, stroke colors, fill colors, create font outlines, image tracing? I am just tossing out ideas here, get your programmers busy, tell them to stop playing video games and "make it so". ;-)
    But even so, this then begs the question: What are you doing to circumvent the same issues for inept CorelDraw and Inkscape users?
    Since, they have the same freedom to do things incorrectly and misaligned with the requirements, just as Illustrator users do.
    Regardless though of the approach customers/designers may not like seeing certain things changed even minutely in trivial amounts and thusly be just as upset or up in arms with the changes to their pretty design files that they think were not needed in the first place, how dare you undermine them ;-). Same as seeing the file rejection from your system upon upload. Again I feel your pain. You have your Application/File requirements requirements stated nicely and plainly, it should be pretty easy for most, but sadly I guess not.

  • Click for Fill Color, Right Click for Stroke Color

    I'm constantly adding my intended Fill Color to my Strokes and vice versa.
    It's often laborious to manage which is active, Fill or Stroke when selecting colors from Swatches.
    I just noticed that Right Clicking on a Swatch doesn't do anything, so there's nothing to stop Illustrator from getting a quicker, easier, sexier way to apply color to Fills or Strokes.
    Regardless of which is the active attribute in the Tools Panel, simply clicking a Swatch would assign the color to the selected object's Fill.
    And Right Clicking would assign the swatch color to its Stroke.
    That's how it works in Corel DRAW and coloring things were sooo much easier back when I used it.
    Wouldn't it be simple to add a Preference to choose between the traditional behavior and this new one?

    Do not you miss it first.
    This idea was reported many times, even a few years ago on this forum.
    Ai adopts with great difficulty and obvious improvements have already discovered.
    I understand the search for his own good idea but I do not understand why I have square wheels when the world no longer revolves on the wheel?
    For me a good idea to apperance palette. I hoped that it will be improved in the CS5 to copy features such as single apperance. But none of that.
    Adobe has long could provide a mechanism to notify the idea and the opportunity to vote for him in order to predict the most needed solution.
    But for some reason do not do this and people are discouraged.
    I just do not know which way to go illustrator. I was very discouraged to invest and Ai.
    I was very discouraged to invest and Ai. I do not know whether the moment does not appear in another completely new applications. I hope that it will be New Ai.

  • Fill color not same as color picker

    Hey there, thanx for any help i can get... here is my problem... i am working in cmyk - U.S. Web Coated (SWOP) v2... i need to get a specific red and so i am going to print some tests...
    c 0
    m 100
    y 90
    k 0
    i entered these values into my color box and then made a selection on a new layer... when i fill the selection with the color the new layer reads:
    c 0
    m 100
    y 89
    k 0
    Every time... dont know what my problem can be... could it be a screen calibration issue... however i recalibrate every month.
    thanx again for any suggestions.!

    Some kind of rounding error looks like. CMYK always uses percentage when in fact its using a scale of 0 to 255, in each channel.
    Behaves the same way for me too. I remember slight discrepancies like this in my CMYK days.  The color can be CORRECTED to, but like you say choosing this as a foreground and filling, results in an incorrect yellow value by one point. CMYK profile is irrelevant.
    Take a curve and pull the yellow 100 input to 99. Honestly in the real wolrld printing is so inaccurate that single percentage values make no difference.

Maybe you are looking for

  • Is there a way to edit multiple photos at once?

    I take a lot of pictures that I usually end up tagging (in the bottom corner). Sometimes it's over 100. Is there an easier way than opening them up one my one and inserting text on all of them?

  • Doc or docx file stop upload at 100% but never complete

    My PC is Windows XP using Firefox2.0.0.7 today I start to try adobe share I try to upload a png file is ok then i try to upload a docx file..... the file upload normally at start... however, when it reach 100% the upload will not complete even i wait

  • Password choice for PBE

    Hi everybody, I'm writing a little webproject which is writing encrypted texts into a database using PBE (with Jasypt packages) and displaying it decrypted. I'm using "PBEWITHSHA256AND256BITAES-CBC-BC" (BouncyCastleProvider). Everthing is working fin

  • Is there a quick way to the desktop in Mac OS X

    Is the keyboard shortcut to get quickly to the desktop? In Windows XP, I use 'Microsoft Key + M'.

  • Translations - Adobe Forms in SAP

    Dear All. Hope my message finds you well. So this is a Q that I have for all you experts. Has anyone coordinated the Transaltions effort with Forms in SAP. I am basically seeking help with the format that will be best suited to have forms transated i