Illustrator Scripting :: Copy Text Box Attributes And Content?
Mar 17, 2012
Is there some kind of script that copy text box attributes (X, Y, W, H) and contents (text) and apply the to new text box?
that is the steps to do this procsses
1- create new text box
2- copy the width attribute and apply it on the new text box, I repeat this with with X, Y, Hight attributes.
3- copy the content to the new box
4- delete the old text box
View 2 Replies
ADVERTISEMENT
May 29, 2013
I'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 Related
Dec 8, 2012
I have an Illustrator document with one layer (named Layer 1).In that layer are lines, rectangles and text.Is it possible (in script) to: make 3 additional layers named NL, EN and GEselect and cut all the text in Layer 1paste that text in the same place in the layers NL, EN and GE
(Step 2: select all text items and Ctrl-X)
(Step 3: select proper layer and Paste in Place in that layer)
I know this can be done with an action (I did that allready) but the reason I want to script this is because I have to combine this with another script which takes care of colorizing stuff.
View 5 Replies
View Related
Jan 11, 2014
Illustrator Version CS3-CC
Preferred scripting: Visual Basic (VBScript)
In the Adobe Illustrator CS5 Scripting Reference (VBScript), I see the following code for setting character attributes.
iCount = textRef.Characters.Count
i = 1
Dim charRef
Do While (i < (iCount + 1))
dSize = dSize * 1.1
textRef.TextRange.Characters(i).CharacterAttributes.HorizontalScale = dSize
textRef.TextRange.Characters(i).CharacterAttributes.VerticalScale = dSize
i = i + 1
Loop
Is there a way to set character attributes on a range of characters at once?
Iterating through the characters one by one is really slow, especially in higher versions of Illustrator (like CS6).
I want to be able to set character attributes, for example, from the third character to the sixth character of a paragraph textrange.
Basically, I want to do something like itembyrange in InDesign scripting.
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
Nov 18, 2013
I have multiple documents using text as symbols. I need to change a ® 2013 to a ® 2014 within the symbols. Without having to go into each document and double click on the symbol or break the link, is there a way to do a batch find and replace that will search within symbols to change text?
View 2 Replies
View Related
Dec 10, 2013
How do I copy attributes, such as polygons and hyperlinks from an .ai document created in CC to CS6? This is a reverse compatibility question.
View 5 Replies
View Related
Aug 20, 2012
I have the common problem to resize the artboard to standardize technical illustrations to the format 50x50mm.
I would like to group the objects for further transformationsI would transform the group to 45mm and scale stroks and effectsN.B.: here It should be a test on landscape format
I would align the group to the page center
Public Sub copy_paste_with_transformation ()
'Duplicates grouped items in a new document with landscape sensitive transformation
Set appRef = CreateObject("Illustrator.Application")
'calculate the size of objects do define if it's landscape or not
Bounds = appRef.ActiveDocument.VisibleBounds
[Code] .....
View 4 Replies
View Related
Jan 25, 2012
Is there a way to write a script to copy a selected/chosen artboard (and it's contents) to another opened document, placing it in exactly the same place on the global x/y coordinates? I'm either unable to find this feature built in to Illustrator, or it's simply missing.
View 35 Replies
View Related
Apr 7, 2012
Is there a way to select everything on the artboard and copy it to the clipboard using VBA?
View 3 Replies
View Related
Nov 12, 2013
I have a script that measures the repeat interval and gap between print impressions printed using a print cylinder (for the production team to know which print cylinders to use, and what to expect once it prints, when looking at the proof sheet). Basically it just measures the distance from the beginning of one print impression to the beginning of the next (these are printed with a cylinder, so every time the cylinder rotates a new print impression happens) as well as the distance in between prints. That part works great.
In order to get these meaurements, Illustrator is measuring the distance from a zero point on the artboard to the left side of a marker I made called "repeat", and it is assigned a variable called rawRepeat. What I'd like to do is have the script take that rawRepeat value and use it to move a copy of the print impression to the right by exactly that variable amount and paste it beneath the marker called "repeat". I have been doing this part manually, but haven't been able to figure out how to get illustrator to do this for me.
Here's the script I am using:
var myDocument = app.activeDocument;
var selectedObject = myDocument.selection;
var activeLayer = app.activeDocument.activeLayer;
var layerName = activeLayer.name;
activeLayer.name = "plate";
[Code] .....
View 11 Replies
View Related
Sep 20, 2012
how can I copy and paste position and size of two objects?
Let's say I have a circle 2 x 2 cm and it's position is y 5cm x 5cm, I have a square of size 3 x 7 cm and it's position is y 0cm x 0cm.
How do I copy and paste in a single command/step the circles position and size to square, so I can get square of 2 x 2 cm and it's position 5cm x 5cm?
Something like copy + paste in place with a different logics. I hope You understand what I want.
I'm doing it now manually, I'm copying size and position of one object to another [ctrl + c > ctrl + v] but it takes quiet a while,
View 2 Replies
View Related
Feb 7, 2012
how the Photoshop DOM works with this snippet but I can't get it to select a pathItem correctly. When testing in ESTK I sometime have to run a line to that sets the path Item selected property to true several times before the path is selected in the GUI.Here is the script I am working on.
copyPathsToPhotoshop()
function copyPathsToPhotoshop(){
var currentLayer = app.activeDocument.activeLayer;
var count = currentLayer.pathItems.length;
var shapeNumber = 105
for( var p=1;p<count;p++){
[code]....
View 12 Replies
View Related
Jul 23, 2013
How can I select all objects in a layer and copy and paste the objects into a new document? We are having issues with the copy and paste method. Is this because it uses the operating systems clipboard?
View 10 Replies
View Related
Apr 2, 2013
Is it possible to copy a specific area (Artboard area) and paste it to new document by using JSX.
View 1 Replies
View Related
Jul 5, 2012
I am trying to make an assembly copy as separate project using the iLogic Design Copy feature.
Everything seems fine except I do not have my involved in assemblyContet Centerparts in this copy.
I am also have no any possibility to chose the Content Center folder in the iLogic Design Copy feature as it does not showup there.
[URL]
View 2 Replies
View Related
Oct 17, 2012
I 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 Related
Mar 19, 2013
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?
View 3 Replies
View Related
Apr 8, 2013
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 *
View 25 Replies
View Related
Apr 26, 2013
i 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 Related
Mar 2, 2012
On Autocad 2012, can we select blocks with the attributes name?
View 9 Replies
View Related
Feb 24, 2012
If 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 + '
');
View 3 Replies
View Related
Jun 30, 2013
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.
View 3 Replies
View Related
Mar 23, 2013
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?
View 11 Replies
View Related
Jul 6, 2013
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.
View 3 Replies
View Related
Aug 14, 2012
How i can align vertical center and horizontal center a single line text to a shape (in vbs) ?
View 1 Replies
View Related
Mar 20, 2013
I'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 Related
Jan 3, 2013
what is the script to delete some letters from layer?For ex. I've "Layer XYZ" and I want "Layer XY".
View 9 Replies
View Related
Nov 25, 2013
I'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 Related
Sep 26, 2013
Have 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?
View 1 Replies
View Related
May 13, 2013
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 Related