Illustrator Scripting :: Copy / Move And Paste Into Different Layer
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
ADVERTISEMENT
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
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
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
Dec 19, 2012
I am working on a script to standardize layers and I need to move all the pageItems from a layer called "PART_NUMBER" to a layer named "STATIC".
following code at the arrow...
I am using "test" to troubleshoot the move.
standardizeLayerNames() // This function verifies that the Layer names conform to the standard Layer names.
function standardizeLayerNames() {
var myDoc7=app.activeDocument
var myLayerCount7 = myDoc7.layers.length
[Code] ........
View 4 Replies
View Related
Oct 10, 2013
I am trying to grab specific spot colors and move them to separate layers for our cutting software. In this case I am trying to grab "perimeter cut" and move it to a layer called "tc 1" I get the following error when I try to run the script.
#target Illustrator
var idoc = app.activeDocument;
var ipath = idoc.pathItems;
if (ipath.typename == "SpotColor") {
if (ipath.spot.name == "perimeter cut") {
ipath.move(tc 1, ElementPlacement.PLACEATBEGINNING).
}
}
View 5 Replies
View Related
May 17, 2013
I have a piece of art on "Layer 1" that i need to shrink and duplicate to "Layer 2". The two layers are always named the same. I'm working in CS5.
View 6 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
Jun 18, 2013
If I drag an effect from the target circle of one object to anther in the layer's panel it replaces the effect along with all appearance. But I want just to add the effect. For example, a layer has a drop shadow and a path, round corners. I want to move the drop shadow from the layer to the path so that the path now has the round corners and the drop shadow. To do this I have to open the shadow effect of the layer wright down its parameters, then create a shadow effect for the path with the same parameters which is a lot of work.
View 3 Replies
View Related
Mar 28, 2011
I'm a longtime Photoshop user in the process of switching to Gimp. I've successfully used Gimp for very simple things like brightness/contrast, color adjustment, and sharpening of single-layer images. What I'm trying to do now involves creating a copy of the background and placing it next to the background image, and I can't figure out how to make it work.
Here's what I'm doing:
1. Resize the canvas to twice the width of the original image, leaving the original image at left. This creates a "blank" area to the right which displays as a checkerboard pattern.
2. The area of the original image is already selected (i.e., it already has a frame around it), so I copy and paste it. This creates a floating selection, duly noted in the list of layers.
3. But when I try to move the floating selection to position it to the right of the original image, in the blank area, it appears to disappear behind the checkerboard pattern.
View 9 Replies
View Related
Jul 19, 2012
I'm trying to copy a portion of a graphic and put it on another layer while keeping it's exact location as to how I view it am I understanded?
View 3 Replies
View Related
Sep 5, 2012
I do a lot of texture work and create depth by using several layers and different blending modes. I wind up masking and remasking the same thing on multiple layers -- is there a way to copy the mask on one layer and paste it onto another? I know I can drag a mask to a different layer, but that removes the first one.
View 6 Replies
View Related
Sep 8, 2012
I've been using PSP since 7.
Now I'm using x4 and I noticed that when I cut/copy a portion of a pic and then paste it as a new image....then I want to copy and paste that portion back into the original photo using paste as new layer....the icon doesn't change automatically from the lasso/cut tool to the move tool.
It used to do that automatically in psp 7 so that right after I paste as new layer, i can move that portion around right away.
In x4, after you paste as new layer, you can't move that layer around because it hasn't changed automatically to the move tool. I have to manually click on the move tool everytime I want to move the layer around. It's very irritating!
Any settings I can change to make it automatically change to "move tool" right after pasting a pic as new layer?
View 14 Replies
View Related
Jan 17, 2007
I'm trying to make a compound shape by copy/pasting a shape into the same layer and using Add to Shape area...
the regular copy/paste commands aren't working and it needs to be in the same layer so Duplicate Layer won't do it...
View 2 Replies
View Related
Jan 17, 2007
I'm trying to make a compound shape by copy/pasting a shape into the same layer and using Add to Shape area...
the regular copy/paste commands aren't working and it needs to be in the same layer so Duplicate Layer won't do it...
View 2 Replies
View Related
Dec 24, 2012
What happened to the option/enter command in the move object dialog that has been around since the early days of Illustrator??? Instead of having to mouse click the "copy" button in the move object window, one could just hold down option with Return or Enter and the Copy command would happen rather than a simple move. Immensely useful for prepress work!
View 2 Replies
View Related
Mar 8, 2013
When I copy a vector shape from one layer to another, the shape picks up the color attributes of an existing shape in the second layer (or sometimes only the outline of the shape appears). What to I do to avoid this from happening (I just just want to paste the shape in its original form and color)?
View 10 Replies
View Related
Apr 6, 2013
when I select, copy and paste the image it still has the content that I removed using the layer mask.
I want to paste it over another psd whilst maintaing the transparency.
PSD is at [URL]
View 2 Replies
View Related
Mar 24, 2011
I have a two layer image:
layer 1. background
layer 2. A transparent vector layer with text
I have a second image, the same exact size and resolution as the first two layer image. I would like to paste layer 2 from the first image, into the same exact position on image 2. Every time I paste. it centers the text, whether it is just a ctrl-v, or a paste layer. I've even tried promoting the layer 2 in the first image then pasting as new layer into image two, with no luck. Everything I've done pastes layer 2 from image one, into the center of image 2.
I have PSP Photo X2
View 7 Replies
View Related
Mar 6, 2013
Our department currently uses MS Paint to place varied colored boxes for call outs on top of screen figures used in our documentation. As you know, MS Paint is not a robust image editing application, and we are frustrated at its limitations (especially not having a "non-destructive" edit capability).
Consequently, we are evaluating a trial version of PS to see how a workflow could be developed that would allow the department to use call out boxes "stored" in a PS file that could be applied in an easy, consistent manner to our screen figures (but also keep each call out box editable) using PS.
Consequently, in PS using the shape tool, I created a file with our colored boxes for call outs, each on its own layer. Now I am trying to determine how you copy and paste a box (or layer) from this file to a "working" file (one containing a screen figure), while keeping all of its attributes (color, line weight, being editable, etc.). I can't seem to find an option to do this. Is there? If not, is there another workflow in PS that you can recommend for this type of procedure?
View 6 Replies
View Related
Jun 1, 2012
I'm looking for a script to paste an object (paste in place) on top of all other layers in a file.
I know I can position a single object on the top layer and then turn the bottom layers on and off, but for my needs (and in this situation) I need to actually paste that object onto each layer.
View 1 Replies
View Related
Aug 7, 2013
I am using ACAD 2005 and am trying to copy&paste several objects from a layer I created in one .dxf file to one of the 2 standard layers (0 or Defpoints) in a new blank .dxf file.
My problem though is that if I copy and paste all of the objects (or even one of them) and them move to the new file and paste, it pastes the objects, but also "imports" into the new file the original file's layer that these objects were on.
For clarity, the new file only has the 2 standard layers and then after copy/pasting an object, the file manager shows the 3rd layer from the original file.
View 9 Replies
View Related
Aug 29, 2012
Ever since I upgraded to CS6, I have big problems copying from illustrator to photoshop. I can get it to succesfully paste about 20% of the time. AI starts "not responding" while I'm trying to paste to photoshop every single time, but can usually snap out of it after a few minutes. It seems to have no rhyme or reason to when it works and when it doesn't.
View 1 Replies
View Related
Dec 16, 2012
When copying a gradient filled shape from illustrator CS6 to Photoshop CS6 an outline "halo" appears in the Photoshop image although the shape has no outline to begin with. Is this a clipboard issue? Is it an anti-aliasing setting I can change? Apparently it isn't as noticeable when I drag the shape from illustrator to Photoshop as it is when using the copy/paste command. But in both situations there seem to be issues in the border when gradient filled shapes touch other shapes.
View 15 Replies
View Related
Mar 25, 2011
Use Oberon's macro that copies to adobe Illustrator with Draw X5? I haven't been able to make it work. I wonder if it has anything to do with the fact that it relies on some of the old Corel scripting commands?
View 9 Replies
View Related
Feb 18, 2013
I am having trouble with Adobe Illustrator "copy" and "paste" functions. It take a very long time (as long as 30 min) to copy a simple line and even longer to paste it. This probles is getting worse. My file size is unusual as well. A comparable file is 155k and this one is up to 65 meg and growing.
View 20 Replies
View Related
Apr 16, 2013
All of a sudden I am not able to copy and paste. I am trying to copy a vector outlined image from one illustrator file to another. I have used both my short cut keys and the edit tab. I tried closing out and starting on a new document, but nothing. I don't know if I accidentally changed an important setting or what?
View 2 Replies
View Related
Feb 21, 2014
How do you copy and paste a graphic from Illustrator CC to Powerpoint?
I know that sounds easy, and it should be...I used to be able to do this the standard way (ctrl+c in Illustrator, ctrl+v in Powerpoint), however now the result is just a load of code inside Powerpoint and no image. (other than exporting as pngs etc.)
I'm on the latest version Illustrator CC, Powerpoint 2011 for Mac, Mac OS 10.9.1
View 3 Replies
View Related
Feb 10, 2014
I just recently reformated my computer and I've been having an issue with copy and paste from Illustrator to Photoshop. Before I could copy a 2"x2" vector box from Illustrator into photoshop making a new document and the size and resolution would match. That is the new document would say 2"x2" at 300 ppi in photoshop and the preset would read "clipboard". I would then hit ok and paste and it would match perfectly. Now since I've reformated, photoshop always creates a new document with the wrong size regardless of the settings I enter in Illustrator or photoshop. I have document raster and effects set at 300 ppi in Illustrator and I have the new document set at 300 in photoshop, but it always transfers the 2"x2" box at 72 dpi regardless of settings. Again this used to work before so I'm assuming there is some setting I forgot about.
The main issue is the clipboard preset is not matching the document size, its almost as if Illustartor is telling photoshop it's a different resolution when it's not. Copying to 72 ppi seems to have no issue, which makes me think Illustrator just isn't sending it out at 300 ppi, but I don't know why as I have the document set at 300 ppi. I confirmed this as I can make a 2"x2" box in photoshop and paste into Illustrator and it reads as 2"x2" at 300 ppi in Illustrator, but if I copy from Illustrator back to photoshop it pastes it at 72 ppi. Changing the settings to 300 ppi in Illustrator seems to have no effect. Might be a bug. Should I try reinstalling?
View 2 Replies
View Related
Jul 25, 2013
I'm trying to write a script that renames a layer, and group within the layer, then an object within the layer (but not a part of the group) and have it run in a loop.
Here's what I've got so far, the group rename doesn't work.
#target Illustrator
var doc = app.activeDocument;
idLayers(doc)//IRename layers
idGroups(doc)//Rename groups
function idLayers(doc){
[code]....
I haven't put in anthing to rename the single object yet since I cant even get the group rename to work. I suspect that the group re-name section isn't working because I'm either using bad syntax or an invalid command.
View 3 Replies
View Related
Sep 10, 2012
Whenever I try to copy paste a vector from Illustrator (CS6 64) to Photoshop (CS6 64) I get the following error:
I'm on Windows 7 and have my Scratch disks set to non-system drives. Have checked permissions and nothing is Read Only.
I can paste as Shape and Shape Layer but not Pixels or Smart Object.
View 5 Replies
View Related