Illustrator Scripting :: Making Unwanted Formatting Changes?
Mar 11, 2013
I picked up the following search and replace script online which works as inteded, except that it removes any italics I have and makes all of my text bold. Is there something I need to add/remove/replace to make it stop doing this?
Edit: It's doing even more in some files, including changing the size of my text. Also, it is only making these changes to any text box that has a string to be replaced.
function myReplace(search_string, replace_string) {
var active_doc = app.activeDocument;
var text_frames = active_doc.textFrames;
[Code].....
View 4 Replies
ADVERTISEMENT
May 13, 2012
I want to make a tab in a radiotext and it does not work when i just add a tab.
I can add a space and other characters using unicode but i cant make it work with the tab character!
staticText = Grp1.add("statictext",undefined,"What? "); // Does not work
staticText2 = Grp1.add("statictext",undefined,"What?u00A0"); // Works but this is a space character
staticText3 = Grp1.add("statictext",undefined,"What?u0009"); // Does not work with Tab character
View 1 Replies
View Related
Mar 3, 2013
How to make a layer visible by using the name of the layer, with javascript?
View 2 Replies
View Related
Jan 24, 2012
trying to make an object the exact size of the artboard. This is something I do on a daily basis for several different reasons and it would be very useful if this can happen automatically for whatever size the artboard may be. As I understand it the only way is with a script but I have no experience with making illustrator scripts, im definately no programmer. I have set up quickkeys in the past to copy from the artboard inputs when you are on the artboard tool but these round to the nearest .01 and this is not accurate enough for what I am working with. Also if I do this with multiple pages open illustrator is very slow to respond to the artboard tool.
Below is a script that I saw on here that I believe may contain what I need but now knowing programming. Where to start on editing. All I need is the part where an object is placed on the artboard that is the exact same size as the artboard.
#target illustrator function main() { if (app.documents.length == 0) { alert('Open a document before running this script'); return; // Stop script here no doc open… } else { var docRef = app.activeDocument; with (docRef) { if (selection.length == 0)
[Code].....
View 23 Replies
View Related
Jul 24, 2013
I'm trying to set up a script that will grab a group of objects and turn them into a compound path, then apply a clipping mask to the compound path and the next group in the layer.
View 5 Replies
View Related
Dec 18, 2012
I'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?
View 8 Replies
View Related
Apr 1, 2013
formatting a logo for the web.
1.) I am putting an Illustrator logo on a Photoshop web banner graphic. What is the best procedure to apply this to the banner? Right now, I am exporting it from Illustrator to a native Photoshop file with export options as follows:
Color model RGB
Screen 72 dpi
Write layers checked
Preserve text checked
Maximum editability checked
Anti-aliasing checked
2.) What is the best format to to send to my client if he plans to use this logo for future web use? Simple RGB, or should I output on Save for Web and Devices for other options such as a GIF or PNG-24?
View 2 Replies
View Related
May 6, 2012
Can you access graph data through the scripting DOM?
View 3 Replies
View Related
May 12, 2013
When I copy some text from one part of a layout to another, it retains the font settings of the original text. How can I have the text just be text and take on the format of the paragraph I'm pasting into?
For instance, I copy some words into a headline, I don't want them to be 12 pt Times, so I have to re-apply the formatting.
Currently I paste into an external text editor and copy again so that it is just text without formatting. Is there a way to do this in Illustrator?
View 1 Replies
View Related
Mar 25, 2013
I am trying to paste a highly detailed ASCII artwork from a webpage into illustrator. Illustrator is aligning the text (at least as far as I can tell) to the left and distorting the artwork.
View 2 Replies
View Related
Apr 15, 2013
I am programmatically setting the text of selected text range from plugin. The text is obtained from external system. It is html formatted (ex: <b>bold</b> text and this is <i>italics</i>) . Is there a way to set the formatted text into text range? Currently it is showing the entire text including formatting tags as text.
View 3 Replies
View Related
Jun 27, 2013
When pasting between illustrator documents all formatting is lost and images do not move over.example, working on a new flyer, I often borrow from existing flyers since copy and pricing is good, just usually making flyers that have different combinations of products etc.
So I select some text boxes and images from one illustrator document, control copy and then try to control v into another illustrator document and all that gets pasted is the text which is formulated. You'd think i had copied and pasted something from notepad.
The problem does not happen 100% of the time, but it's like 50/50 it seems.Sometimes when the problem occurs, I'll spam control c a few times and then control v will paste as you'd expect. But the problem occurs whether I use control c, or edit copy.I'm using CS3..It even happens when I try to cut and paste within the same document.
View 2 Replies
View Related
Sep 4, 2013
When I copied text over from Photoshop to illustrator it kept the text formatting. For example the font, font size, color. Now when I use CC and copy paste text from PS to AI, all text formatting is lost and everything is placed as whatever the current AI text setting is.
HOWEVER, pasting from AI to PS WORKS as it should. All font/text formatting is maintained. Is this a bug or is there a setting for this that I just never knew about?
View 3 Replies
View Related
Feb 20, 2014
I create pie graphs in illustrator for a financial sevices group. Every month when I update the data the format and colour of the graph distorts. I am spending too much time manually fixing the graphs.
View 3 Replies
View Related
Mar 11, 2013
I have a detailed graph that is created in Excel that I want to paste into Illustrator so that I can save it as a high resolution TIFF file for submission to a journal.
In Excel the graph looks like this:
But when I select it (using Select Objects and then Copy OR Copy as picture) and paste it into Illustrator, it looks like this:
I have used different line formats in Excel for the different curves that are plotted and these obviously don't come through correctly when pasting into Illustrator. The lines are there but the scaling for the dashes or dots seems to be changed (increased). I'm good with Excel but a bit of an Illustrator newbie, why this is happening and can it be corrected.
I am on Win 7 64 bit system using Office 2010 and AI CS6
View 5 Replies
View Related
May 7, 2013
Setup 3 bar graphs (i.e. horizontal bar charts), with some data and text labels. Set them all in Type to Value Axis > Tick Marks > Full widthUnder graph > type, leave one as Value Axis: On Bottom Side. Change one to Value Axis: On Top Side. Change one to Value Axis: On Both SidesChange the stroke width and colour of these tick marks / lines the correct way - clicking twice with the 'plus arrow' Group Selection tool to select the whole group, and applying the formatting to the group.Update the chart, e.g. change the data or go into Object > Graph > Type and hit Okay,
Desired behaviour: The re-drawn tick lines should keep their assigned formatting like other groups in a graph.
What I actually see: The desed behaviour happens but only when the Value Axis is set to On Bottom Side. When the value axis is set to On Top Side, the tick lines are reset to an ugly default - 1pt thickness and pure black. When it is set to Both, the lines associated with the bottom labels keep their formatting, the lines associated with the top labels forget their formatting and revert to the default.
I'm trying to set up some chart templates that need the labels to be on the top side, and that need to be editable without losing their formatting. This bug as it stands is making this simple task impossible.
View 9 Replies
View Related
Jun 19, 2013
How to change all the text font, leaving previous letter formatting? I mean leave Bold, Underline, Italic, e.t.c.
View 8 Replies
View Related
May 3, 2013
I have a problem with the envelope distort function. The left part of the image shows what I want to distort with what shape, the right one is a close up for what it does in the mid corner (straight lines no longer straight... at least the horizontal ones...).
View 5 Replies
View Related
Jun 25, 2012
I'm having stroke issues. I'm not sure if it's a document setting somewhere or a bug. In one of my documents, when I draw a box and try to set the stroke to inside, it offsets, like this:
Notice that the stroke is on top in the appearance panel, yet the fill is masking half the stroke. If I resize the box, it changes the offset: It was also snapping any stroke weight under 1 pt to 1 pt when my fill was a gradient, although that doesn't seem to be a problem with this shape. Another strange thing is that in a different existing document, the stroke works properly, but if I open a new document with this one open, the same problem occurs in the new document. Is this a document setting?
View 6 Replies
View Related
Jan 18, 2013
Illustrator CS6 exports to PNG with unwanted transparencies. I've done everything I can think of but some of the shapes in my Ai file with 100% opacity are still showing the layer under them in the PNG export file.
View 3 Replies
View Related
Jan 4, 2014
I've created some buttons and I've exported them as .pngs.
I'm getting an unwanted white border of margin, or padding (whatever you want to call it). how I can get rid of this?
If I try to transform and resize the png it shrinks my buton (which is at the exact correct size).
View 4 Replies
View Related
Nov 3, 2013
With shapes that are intended to fit exactly with one another, such as shapes created with pathfinder>divide I find often that there are very small cracks between the shapes and that these will show up if the shapes are exported to Photoshop in a more pronounced way.
What's the workaround to 'seal' one shape to another and rid the result of these gaps?
Joining the shapes is not an option as they are different colours.
View 1 Replies
View Related
Jun 2, 2012
How do I get rid of the small orange line in the right hand side of this image? I want to create a white cross through the whole image..
View 7 Replies
View Related
Jan 10, 2013
When I write a text in illustrator, there appears a small grey border around the text. When I save it as a pdf or jpg, then it’s gone. So I’m sure it’s not a stroke. It more looks like some kind of path around the text. When I draw another shape (square, circle…) then there is no problem .I’ve reset illustrator (removed the presets) but that didn’t do anything.
View 6 Replies
View Related
Feb 17, 2014
Working with two text characters - created separately. When I transform one they both transform. I want them to behave separately.
View 2 Replies
View Related
Sep 21, 2013
Its bounded box but its this box that takes up center of my image and it ruins the entire image.I don't know how to make it go away.I have unselected things anything in window that might be related but it still not working.I am using the creative cloud version of Illustrator on computer os window 7
View 9 Replies
View Related
Jan 31, 2013
I'm having trouble with a logo I've created in an svg. file. I seem to have to finalized, but when I save it as a pdf. to take it to the printers I see parts of the logo suddenly have no stroke or stroke has been added in other parts.
I don't seem to have any hidden layers I don't think. I'm not sure if there is a setting to change in the window that gives you all the options to choose from when you're saving something as a pdf. Or is there a setting I should be activating when finalizing this logo as an svg that prevents such problems. I'm pretty new to illustrator, before this I was using inkscape which I got the feel of until i decided to go pro with illustrator.
View 14 Replies
View Related
Sep 26, 2012
When I create a new document in Illustrator I'm getting two artboards, even though the new document dialog box displays 1 in the Number of Artboards dropdown. Why this might happen, and more importantly, how to stop it?
View 3 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Apr 30, 2013
I'm creating a logo that employs a stippled texture (a half-tone) in various sections of objects comprising the logo. I've placed the stipple where I want it, created a clipping path to capture the area. Now I have all these other points that I don't need that I want to delete.
Is there anyway short of releasing the clipping path, manually delete unwanted sections of the stipple and then re-apply the clipping path again? It would be like 'Applying Mask' in photoshop.
View 2 Replies
View Related
Jan 29, 2014
In illustrator, I have placed an image that I created in photoshop. Once I trace and expand it, with the option to ignore white selected, there are still transparent shapes that I have to manually delete. For what I am doing now, it is way too tedious to have to do that. Why, if I'm 'ignoring white' so that I simply get a black/transparent vector image, are these transparent shapes showing up?
View 4 Replies
View Related