Illustrator Scripting :: Applying Text Shadow In AI Script
Feb 3, 2013Example of applying text shadow in AI script.
View 3 RepliesExample of applying text shadow in AI script.
View 3 RepliesI am currently working on a mac mini with OS X 10.8.2 and version CS6 of Illustrator.
My problem is that everytime I try to preview or apply a drop shadow effect (Effects > Stylize > Drop Shadow...) it freezes.
I have done a lot of things to try and resolve this issue including quiting and restarting Illustrator. Restarting the computer. Reinstalling illustrator, which ended up being a temporary fix. I have a screen shot of the program of when I clicked on the Preview box (just insert the colorful spining wheel of death).
I keep trying to apply the same drop shadow to warped text, but AI automatically makes the text glow instead of having the drop shadow. I have tried retyping the text, copying the text from another file, and expanding the appearance befor using the warp and to no avail-- it always turns my drop shadow into a glow.
View 1 Replies View RelatedSome weeks ago I had to make a large scale graphic (800mmx2000mm) for a roll-up banner. I wanted to apply a drop shadow to a rounded shape, and ugly lines came up. Since it was a bit urgent, I decided not to use it.
But now I'm curious, so I quickly made an ellipse and added a shadow, so you know what I mean. This also happens when I save it as pdf or image.
Perhaps someday I will have to use a drop shadow on large scale. So, what could I do in case I need to use this effect in these conditions? I use Illustrator CS6 in Mac with Mavericks.
how to apply multiple strokes to a path with JavaScript? Assigning strokes width, caps, position in stack (my particular concern)? All i can do at the moment is to apply a single stroke.
View 5 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.
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies View Relatedi am trying to create a drop shadow on text. i select the text and then copy and then paste in back. however, the copy shows up way above the text and not behind it. what am i doing wrong?
View 2 Replies View Relatedhow do i a shadow text effect like this i tried the drop shadow but it doesnt quite look the same has this?
View 9 Replies View RelatedI am working on a project which needs..Text frames to be converted as flash text >property changed to dynamic text > writing instance name “_txt”.so how can i write scripting on above process.
View 5 Replies View RelatedI am having a problem in CS6 Photoshop where I never experienced this in CS3-5.
I am designing a website and when I apply a drop shadow or inner shadow to a layer through layer style/blending options in the layers tab. It applys the same angle etc.. to all the other layers I have done styles too...
I will have 5 + layers done with styles and I will make a new layer and give it a shape, open up blending options and when I do a drop shadow and change the angle I literally can see everything on my layout change angles also when I move it around for just ONE layers style... What on earth is going on? This makes it impossible to make unique designs unless I keep flattening my PSD and transfering stuff over which destroys workflow.
I have yet another question. I can see the text in a text frame with a script like this,
var doc = app.activeDocument;
var myTextFrames = doc.textFrames[0];
var myTF_Content = myTextFrames.contents; // this will return the string inside the text frame
alert(myTF_Content);
but how do I add some text to the beginning of that text? lets say that this is my textFrame[0] = "this is a simple test string".what is the proper way to add text like the number one and a period to the beginning?
What is the best way or anyway to remove text from a text frame? Say if you want to remove anything in () in a text frame or any * symbols.
52(one on both sides) //you have this in a text frame
52 // and you want to change it to this by deleting (.)
or
40* //you have this in a text frame
40 // and you want to change it to this by deleting the *
I have 2 layers, a text layer on top, and a shape behind it. When I add a drop shadow to the text, the shadow shows up BEHIND the shape, instead of on it. If I choose mode "Multiply," then it shows up in front but is way too big.
View 2 Replies View RelatedI'm using Illustrator CC although I haven't tried doing this in earlier versions. When I copy text that has a drop shadow made with "effect/stylize/drop shadow" the drop shadow is editable from the Appearance pallet only in the original document. In the pasted document the drop shadow is there but does not show up in the Appearance pallet so I can't edit it. It shows up on a different layer so I can delete it but then I have to create an editable shadow from scratch on the new document. When I copy objects that are not text with drop shadow, the editiability remains, but it doesn't seem to work with text unless I create outlines of the type and then I lose the editability of the text. Is there any way to copy drop shadows that are editable on text?
View 23 Replies View RelatedIf I were to select some text, then checkmark 'Overprint Fill' in the 'Attributes' pane, is there a way to tell with JavaScript that the text was set to overprint?
I've been experimenting with this code in ExtendScript, but it keeps returning false:
var doc = app.activeDocument;
$.write(doc.textFrames[0].textPath.fillOverprint + '
');
script that is able to do the same as this photoshop one [URL] ...., I would use that one in photoshop but its not working in CS6.
find a script that will seperate the text into layers ready for export to After Effects to be used in Kinetic Typography pieces.
I want to evaluate text frames for their x axis and if they are the same shift them slightly because of adobes irritating habit of combining the text frames when it makes a PDF. I have been able to evaluate, but not exactly like I want to but I know it can be done...
var mydoc = app.activeDocument;var mytext = mydoc.textFrames;var allX_Vaues = new Array();for (i =0; i < mytext.length; i++) {var mytextFrames = mydoc.textFrames[i];var theMatrix = mytextFrames.matrix;allX_Vaues.push(theMatrix.mValueTX)var firstEval = allX_Vaues//$.writeln(theMatrix.mValueA+"
"+theMatrix.mValueB+"
"+theMatrix.mV alueC+"
"+theMatrix.mValueD+"
"+theMatrix.mValueTX+"
"+theMatrix.mV alueTY);//alert(allX_Vaues);}//alert(allX_Vaues[1]);for (i =0; i < allX_Vaues.length; i++) {if (allX_Vaues[i] == allX_Vaues[i + 1] ) {alert(allX_Vaues[i] + " and " + allX_Vaues[i +1] + " are the same");}else{alert(allX_Vaues[i] + " and " + allX_Vaues[i +1] + " are different");} }
[code]....
my problem is when I try to move text frames. It flies way of the page. I just want to move the text a slight amount and concatenate is the only way I have been successful. my question is: Is there a better way and why is my text flying so far of the page?
how to place an image into illustrator via scripting with javascript, however I am having difficulties with text files. My code is:
var myDoc = app.activeDocument;
var Layer1 = myDoc.layers[0];
function getTextFile() {
return File.openDialog('Please select the text file to be imported:', undefined, undefined);
}
var myTextfile = getTextFile();
var myPlacedFile = Layer1.placedItems.add();
myPlacedFile.file = myTextfile;
But when I select a text file, it says it is an unsupported format. I'm assuming it has something to do with the extra options that come with importing a text document, specific for .txt and .doc for example.
For what it's worth I was working on an alternate method by read() ing in the contents of the .txt file and setting them equal to the contents of a textFrame, however it imported the text without carriage returns/newlines and I haven't been able to result that issue.
How i can align vertical center and horizontal center a single line text to a shape (in vbs) ?
View 1 Replies View RelatedI'm wondering if there is a way for me to only need to create one sample text and get multiple previews of different fonts (either some of my favorites, or just all of them). If not, perhaps there is a way to make a script where the text makes multiple copies of itself and changes the font.
View 1 Replies View Relatedwhat is the script to delete some letters from layer?For ex. I've "Layer XYZ" and I want "Layer XY".
View 9 Replies View RelatedI'm trying to change/access the opacity of a text object (Illustrator CC). In the documents, I found that it's represented by a text frame object, but it doesn't have opacity property. Text range and character attributes don't have it either, so I'm wondering: is there any way of accessing/altering the opacity of a text object using Javascript?
View 5 Replies View RelatedHave to enter a lot of text snippets into illustrator cs4 every day, would love to make my live easier.
I'm trying to figure out how to import text to illustrator automaticly.
I have olny a few parameters: the text, what font to use, the size of the text (the text width and length in mm as if the text would be converted to outlines, needs to be exactly the right size) and the coulor.
Usually its one line of text, sometimes more lines of wich i have the widht and length of the complete block of text
The parameters could be in a cvs-file or something like that, ideally all texts would be imported in one file but it could be seperate files
Texts should be converted to outlines and saved as AI version 3
Is it possible to do this?
Is it possible to use an imported text as a number? I would like to import a .txt tab formatted file containing some values (ex: 22.5; 50.00; 150.00, etc.), and I want to treat those values as numbers in my script. Is this possible?
View 2 Replies View Relatedi am in need of ai script for arcing text
View 1 Replies View RelatedI've looked around for this but haven't found much. I have a server with thousands of print proof sheets, and since the beginning, long before me, the files were saved with verbal descriptive names. It would be a lot better if they were saved according to the PO number. All the proof sheets have a po number listed in pretty much the same place on the sheet... is there a way to copy that PO number from the field within the pdf, and save the file to a new folder using that number as the filename using a script?
View 28 Replies View RelatedI need a script for Illustrator CS6, that...
1. Opens a dialog where I enter a letter, like "A".
2. Script then check the current layer for text with this letter, and "unview" (opacity = 0 or color=white), all other letters on this layer. So that the layer will only show "A", or "a" and no other type of letter. The script needs to check all text objects, some "a"s will be in objects consisting of several other letters also, like sentances. Script needs to find the letter in these and mute all others.
I'm looking for a way to import text from a .txt file but I'm totally lost.
View 2 Replies View RelatedFor my business card design I have white text overlapping an area of very white grey- causing readability issues (insufficient contrast). It looks great apart from this one problem, so I still want to keep my white text and light background and fix it by separating the text and background with a darker drop shadow..
First, I added a black drop shadow to the text- but this was not enough to increase readability (text still looked faded on background as drop shadow was too subtle at 85% opacity, 0.04" blur) so I added a drop shadow to my drop shadow (100% opacity, 0.02" blur + 18% opacity, 0.02" blur). This produced a heavier drop shadow effect for my text as desired but, for some reason, the text came out slightly grey in print (offset run). It seems the drop shadow somehow got printed over the text itself to some extent- turning the white text somewhat grey (and so not looking as clean as intended).
How could this dropshadow bleed into the text happen? Is it to do with the fact I added a drop shadow to my drop shadow? I would have thought that, even then, the text should entirely overlap all of the drop shadow as the text is the top layer in the group.
What can I do to ensure that drop shadow does not print over text in any way in future? Do I have to stick to only one layer of dropshadow-or is there something else I'm missing?
Trying to remove any text frames with empty content but it doesn't seem to be removing correct textFrame layers?
var numberOfEmptyTextBoxes = 0;
var layersWithNoText = new Array();
if ( app.documents.length > 0 ) {
for ( i = 0; i < app.activeDocument.textFrames.length; i++ ) {
[URL] ....