Illustrator Scripting :: How To Set To True Or False For Scale Stroke
Sep 12, 2012does 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 Repliesdoes 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 RepliesI am working on a pipe with a ports on one side. I created a True/False parameter to determine whether the ports are on one side or two and created a rule that does that, but now I am stuck with the CC:
Is there a way to publish a part to the content center with a true/false parameter? I made a rule to designate what true and false means but when I publish it to the content center I want to be able to choose whether it's true or false and it doesn't seem to be working. I also tried to publish without the T/F parameter and then after placing it just change the T/F parameter but I cannot change any parameter of a part that I placed from the content center.reciated.
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.
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies View RelatedI'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.
Select same fill color with java script and stroke color tool.
View 1 Replies View RelatedHow to find out the textframe contains "stroke color" (or) "fillcolor" via javascript. Any sample.
View 5 Replies View RelatedI 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();
}
When I scale my artwork I have scale strokes and effects checked but the effects dont appear to be scaling. They look as though they arent even there at all after the scale. Am i missing something?
View 35 Replies View RelatedI'd like to scale a brush stroke. How do I do this?
Left is original stroke Right is resized by pressing shift then pulling box to upper right.
I found on the forum to tick preferences - scale strokes & effects but still not working?
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.
Is there a way to select similar objects (by stroke color) programatically?
View 3 Replies View RelatedI 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.
When I printout a file at a reduced size, is there a way to add the percentage that it got reduced by on the printout?
View 1 Replies View RelatedI have multiple icons placed in a document, from several different sources (all are vector objects) -- see the included image. They vary in size and what I would like to do is find a less onerous method of resizing all the heights to a specific size, while scaling the width proportionately. I have found several scripts that come close to a solution (see links below), but none that allow me to input a height (or width) in inches and have all the objects resize to that height proportionately.
Change Width to the Width of the narrowest object --> Script01
Change Height to the Height of the shortest object --> Script02
Change Multiple Attributes (JohnWundes) --> Script03
icon image (couldn't place via Adobe Forum) --> click
I'm looking for a script/program that if you run it, all the .eps files in a folder will batch convert to a png-24 with 250% scale.
View 20 Replies View RelatedLino's CrTronic used to have a command to set horizontal scaling to 100% for these 3 characters, and leave the rest alone.
® circle R
© circle C
• bullet
Because those 3 characters are circles we often want them proportional even if the rest of the copy is horizontally scaled.
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 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.
I need an outline on a stroke that i drew but when i apply object>path>outline stroke i keep getting my initial stroke applied as well. I only need the outline, not the initial stroke. I use Illustrator CC.
View 4 Replies View RelatedI'm try to automate the importing of the Varaible and datasets into my graphs via Scripting, but the ImportVaraibles() function doesn't seem to work. Here is my Script, mostly copied from the example script provided with Illustrator (CS5). And, this works manually, using the file names in the script, via Load Variable Library
Set appRef = CreateObject(strIllistratorVersion)
'Open the file and import the datasets
Set docRef = appRef.Open(strTemplate & "200-500.ai")
'docRef.Datasets.RemoveAll
docRef.Variables("Yearbook").Delete
Here is the problem, after I delete the previous library, then this next line, right from the example, does nothing
The script then exits with 'No Datasets in this document'
docRef.ImportVariables (strXMLFolder & "Lumber_200-500.xml")
'appRef.DoJavaScript "alert('Template:" & strTemplate & strRange & ".ai | XML file:" & strXMLFolder & "" & objFile.Name & "^')"
If (appRef.Documents.Count > 0) Then
Set docRef = appRef.Documents(1)
[Code]....
If I remove that delete line, the script runs, but just uses whatever Variables I had last loaded, not the XML file.
It's simply not loading. What do I need to do to get it to load?
What I would like to do is to get the stroke shape, pressure and maybe velocity after a `Brush Tool' drawing action is triggered by the user, i.e. after a simple drawing operation.
I have been using the ScriptListener plugin, but it does not record this type of operation: changing the brush parameters (e.g. size and opacity), yes, but the actual drawing action, no.
Can you access graph data through the scripting DOM?
View 3 Replies View RelatedIs it possible to create a custom stroke that doesn't scale to the length of the line you assign it to? I am trying to create a stroke that looks like a chain but when I create a custom brush, I have to almost create the brush pattern the same length as the stoke it gets applied to in order to avoid the chain links bunching up or being grossly stretched out along the assigned path.
Is there a setting or some other function that can accomplish this? Is there an easy way to assign a shape to along a path other than blend?
In the end I want to be able to assign a premade pattern to a line without that pattern being distorted or scaled along the path it is assigned to.
Can I import True Type fonts into Illustrator CC without Tykekit?
View 6 Replies View RelatedI have an image that has a black stroke around it. I'm wanting to make that transparent and add a stroke to the outside of the black stroke, so it will basically be an invisible space there. Is that possible or is there an easier way?
View 1 Replies View RelatedI have created a drawing with hatch that I would like to print in color not in grayscale. I have used dwg to PDF for many other plots and have not had an issue, but they were all in grayscale. With this dwg when I plot to PDF, the PDF writes lines into the drawing that do not exist in autoCAD. If I plot from AutoCAD the lines do not appear and I did not draw the lines in the dwg file. However, when I plot from the PDF it plots with additional lines all over the drawing. Is this because I am plotting in color and some of my layers have the transparency set for around 45?
View 9 Replies View RelatedI'd like to know what the point of the false northing and easting is as it's defined in some coordinate systems. My understanding was this was an issue many years ago so that any coordinate values that were extracted for use in a db would be positive values. However, I'm not sure that is an issue any longer for most applications so is there any point to using a coordinate system with those values?
View 3 Replies View RelatedPhotoshop CS6. Win 7 32 bit. Sophos Anti virus is reporting that WIASupport.8LI contains malware Troj/Zbot-DHN and quarantines it. This has just started to happen today.
View 4 Replies View RelatedI have a VB.NET routine that exports a pdf using the TranslatorAddIn interface. I copied the example from the api help.
The pdf is created, but only the first sheet of the drawing is exported. I uncommented the following line in the example code, and still no change:
oOptions.Value("Sheet_Range") = kPrintAllSheets
I added a message box, to make sure I was reaching that line, and I found that I was not in fact reaching that line. Why is this? In some posts here related to dwf exporting also using the TranslatorAddIn, the first argument of HasSaveCopyAsOptions was oDataMedium instead of oDocument, so I tried that, too, but still no change.
Here is the code of the export to PDF routine from the api example:
Public Sub PublishPDF() ' Get the PDF translator Add-In. Dim PDFAddIn As TranslatorAddIn Set PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}") 'Set a reference to the active document (the document to be published). Dim oDocument As Document
[Code] .......