Illustrator Scripting :: Is It Possible To Copy And Duplicate (only) Text To Multiple Layers
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
ADVERTISEMENT
Aug 8, 2012
I am trying to turn every layer in my .ai file to a raster image without flattening to one layer.
-The big issue I am dealing with is the agency that just built a paralax site for us refuses to export to PSD. I have tried every possible way to do this but keep getting the file is to big message. To add to it they had it all on 1 layer. I was able to release to sequence, but now am trying to see if rasterizing the objects will work.
View 1 Replies
View Related
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
Mar 27, 2013
I can't figure out the proper commands to fill out and complete the script below. What I am trying to do is:
- Create a new document using one of the Profile presets (or have the New Document dialogue open so I could select the profile, size and bleed)
- Make 3 layers, each with a diferent name
- Create a rectangle the size of the artboard on the bottom layer, with a swatch stroke and no fill
- Create a rectangle the size of the bleed on the middle layer, with no stroke or fill
Like I said, I haven't gotten far at all. I've read through the basic scripting guides and I'm just not understanding all of the language needed to string things together.
tell application "Adobe Illustrator"
make new document
set topLayer to make new layer ¬
at beginning of document 1 with properties {name:"Vector"}
set bottomLayer to make new layer ¬
at end of document 1 with properties {name:"Through Cut"}
end tell
View 6 Replies
View Related
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
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
Oct 9, 2013
I've got an Illustrator CS6 document that has 500+ layers with individual words on them (a word cloud). I'm needing to animate this in AE. When I "Release to Layers (Sequence)", all of the layers become Layer 1, Layer 2, etc. Is there a script that will rename all of those layers to be the text inside them?
i.e. Layer 1 has the word "Pencil" as a sub-layer, editable text.. I need to rename the Top-Layer Layer 1 to "Pencil". I'm hoping there is a script that can do this so I don't have to manually rename all of the layers.I have found this script:
var idoc = app.activeDocument;
var ilayer = idoc.activeLayer;
for (i=0; i<ilayer.layers.length; i++) {
var isublayer = ilayer.layers[i];
isublayer.name = isublayer.pageItems[0].name;
}
But is doesn't seem to do what I need.
View 8 Replies
View Related
Mar 3, 2013
I want to select all text frames on all visible layers. The script below will select all text frames even in groups but when a layer with text on it is invisible the script will error.(target layer cannot be modified)
if (app.documents.length > 0 ) {
var doc = app.activeDocument;
var numTextFrames = 0;
for ( i = 0; i < doc.textFrames.length; i++ ) {
textArtRange = doc.textFrames[i];
textArtRange.selected = true;
}
}
So I made this script to select text frames on only the visible layers but it now misses text that is in a group.
var layerCount = activeDocument.layers.length;
var docSelected = activeDocument.selection;
for (i = 0; i < layerCount; i++)
[Code] .....
Why it does not selected textframes in a group when done this way and is there a way to get all textframes selected on all visible layers?
View 3 Replies
View Related
Apr 5, 2013
I have about 500 files that I need to change one line of text in. Example. File name is XXX 001, the line of text is the file name so it would read XXX 001. XXX 002... etc. up to XXX 500. Is there a way that I could automate it opening, changing this line of text, saving and closing?
View 1 Replies
View Related
Oct 1, 2012
How can I repeat text several times and put it into a circle with the words continuously repeated into the circle if that makes sense.
View 2 Replies
View Related
Feb 1, 2013
I'm looking for the most elegant syntax to loop through a document and select all the text frames.
View 1 Replies
View Related
Feb 24, 2005
Is it possible to duplicate multiple layers at one time.
I can link layers and then do Merge Linked and then duplicate it,
View 4 Replies
View Related
Aug 5, 2013
I'm trying to challenge myself here, I want to create a copy of every gradient in the active document and give it an assigned name like "Batman 1" "Batman 2" ect.
I can add new gradients and set their stop colors ect but I can't figure out how to create a perfect copy of the gradient in the swatch library.
I've been looking and the only thing I found that comes close was an older script that's only compatibale with CS. In this they're copying EVERYTHING I just wanna stick to gradients at the moment. Here's the link: [URL]
I looked to this as an example of how to do something like this but since it wont work with CS6 I cant really experiment or tinker to figure out how it works.
View 24 Replies
View Related
Sep 21, 2012
How to write a script which can duplicate objects and apply colours. I have a full break down of the project together with a Illustrator Action that demonstrates the functionality of the required script.
View 3 Replies
View Related
Oct 23, 2013
Basically, I have an open AI document and would like to duplicate its artboard and then move it to a new position(X axis, 50pixels away from the original). Doesn't seem too hard, but I can't figure it out. This is for CS5.
var docRef = app.activeDocument;
var abSrc = docRef.artboards[0];
var abSrcX = abSrc.artboardRect[0];
[Code]...
Taking that into account if I add (1224 + 144) to abSrcX and abSrxW it creates another artboard 2" away from the previous at 17" x 11". If I want to run it again, I just to add (1224 + 144) to abSrcX and abSrxW again. Now to figure out how to do this dynamically on the fly.
View 5 Replies
View Related
Mar 16, 2013
the Script of creating mirror text and stroke text in Adobe illustrator scripting.
View 4 Replies
View Related
Mar 11, 2011
How to make a duplicate copy of current document?
so that i can do the modification with duplicate document without changing the status of original document.
View 2 Replies
View Related
Oct 30, 2012
Is there a way to duplicate layers in text?
View 4 Replies
View Related
Apr 9, 2012
I´m aware that Illustrator doesn´t have multiple artboards options for JPG as it does with eps, or other formats, but is there any workaround for this? Looping current artboard and exporting them to JPG or something. Or maybe there is someway to force the "save multiple artboards:true" in JPG?
export document currentDoc to file exportFolder as JPEG with options ¬
{class:JPEG export options ¬
, quality:100 ¬
, artboard clipping:true ¬
, artboard range:1 - 2 ¬
, save multiple artboards:true}
View 3 Replies
View Related
Dec 29, 2008
I am trying to get a white layer with see through writing which reveals the background image underneath. (Almost like I have put a stencil over a photograph). I have discovered this is called a clipping mask.
However, I am having difficulty using a clipping mask over multiple text layers. It seems to only do it to one layer directly beneath. I do not want to merge the text layers as I want to mess about with the design a fair bit.
View 4 Replies
View Related
Jan 21, 2014
So, I use many of the same brushes. If I copy a path from a file that uses a certian brush to another file that uses the same brush, I get a duplicate of the brush in the brush panel.
Can I stop this from happening?
View 5 Replies
View Related
Aug 9, 2012
I'm trying to build a sprite image for a website based on a graphic that I created with Paint.NET.
The graphic has about 6 different layers.
To make the sprite image, I need the items in one layer to be duplicated in the exact same spots only shifted down by an integral number of the height. So, if the original image is 400px, I stretch the canvas out to 1200px. Now I want to copy each of the 6 layers and paste them exactly 400px down, then copy each of the 6 layers and paste them exactly 800px down.
I'm guessing there is a way to do something like this using the scripting ability of Paint.NET, but I have never used that feature before.
View 1 Replies
View Related
Apr 18, 2013
Create shape > Transform > Move horizontal or vertical > select number of copies (missing!)
This was one of my favorite tricks but it looks the ability has been removed in CS6! So now if I want to make a sequence of shapes how can I do it?
Adobe fail? or am I missing something?
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
Mar 27, 2012
I need to make multiple duplications of the same layer. This will solve my problem, however after I get the results I want, if I merge the layers, it reverts to the look as if I only had one single layer again. This will also happen if I do not merge the layers but save it as a PDF to get it ready for print. This results in a very muddy/neutral results. I have tried to simply select the layers and copy as merge, select everything and copy merge into a new document, and flatten/merge the image. None of them worked and reverted the image to the original one layer look.
View 8 Replies
View Related
Dec 11, 2011
Using GIMP 2.6.11 under Windows XP
Is this real? I am really amazed that there is no way to do this. Am I missing something? I have multiple images, each with a unique background layer. On top are multiple other layers, both images and text layers. I was editing one and was about to save it but then realized it was on the wrong background.
All I want to do is select four or five layers from this unsaved image with Background A, copy them and then open an image with Background B and paste them in so there will be minimal issues with alignments and such. I have been editing each of these four layers and there are a fair bit of changes that have been made to just throw them away and start over. The background is not the only difference between the images, it is just what I use as a reference so copying that over to the unsaved image would also require multiple layer copy/pasting.
I have already tried linking the layers but any copy/cut/paste seems to only work on the active layer, unless I am again missing something. This seems like a really fundamental function to not be supported.
View 7 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
Apr 7, 2012
Is it possible to reference layers or groups by their names instead of their index using VBA? If so, what is the sytax? I know you can do it in Extendscript, but I'm not finding info for VBA.
View 7 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