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


ADVERTISEMENT

Illustrator Scripting :: Drawing PathItems That End Up Grouped

Sep 12, 2012

How do I go about drawing many items that end up grouped?
 
I have:
 
cropMark.setEntirePath([[(tl.x-offset), tl.y], [(tl.x-lineLength),tl.y]]);
 
I'm obviously going to end up with 8 of them; how do I script their such that they end up grouped once I'm done?

View 1 Replies View Related

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 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 :: 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 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

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 :: 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 :: 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 :: 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

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.

View 1 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 :: Applying Stroke Miter Limit With Apple Script

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

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 :: Appearance Palette - How To Rearrange The Stroke (Beneath The Fill)

Dec 12, 2012

I am new to the Appearance palette
 
See screen shot attached. (the text "Helvetica")
 
I have created some live text (ie: it remains editable)
 
I have given it a fill of black and a heavy (7pt) stroke of blue.
 
I cannot appear to rearrange the stroke so that it falls beneath the fill
 
I assumed it would simply be question of dragging it below, as one would with the Layers
 
However, when I converted the text to outlines (in this case the text "UNIVERS") it works.
 
And also why are the eyes in the first coloumn grayed out when the text is live. But not so when text is outlined?

View 8 Replies View Related

Illustrator :: When Will Fill / Stroke Component In Toolbox Be Restored To Normal In AI CC

Jun 19, 2013

So I noticed that when selecting multiple closed paths with a fill you can no longer swap them to a stroke in your tool panel.  I am assuming that this just got overlooked.

View 1 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 :: Alternative Way Of Adding Same Stroke To Actual Fill Of A Shape

Nov 2, 2013

I want to use a 3rd party brush to 'color in' parts of a drawing or paint the background so it has a nice effect.However, when I use the brush tool to add color it reacts in an odd way as seen in the snapshot. I've looked at the brush options but am unsure of what will make a difference. Is there a way of devoting more ram to the program when I'm using it?
 
Is there an alternative way of adding the same stroke to the actual fill of a shape? At the moment all of my fill colors are block colors rather than having a kind of chalk / pastel texture that I can get with the brush. Basically, I would like to fill shapes with textured color rather than flat color.

View 2 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 :: Add Outer Glow Or Drop Shadow To Object That Has No Stroke Or Fill?

Dec 27, 2012

I just need to be able to have the glow or shadow around the object, but no fill or stroke at all.

View 6 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 :: Fill A Shape With Instances Of A Symbol?

Sep 6, 2012

I'd like to fill a shape with instances of a symbol. The sybmols should vary in size but never touch each other or the outer edges of my shape. Is there a script that can do this?

[URL]

View 1 Replies View Related







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