Illustrator Scripting :: Selecting Objects In Layer To Copy And Paste Into New Doc?

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


ADVERTISEMENT

Illustrator Scripting :: Copy And Paste Position And Size Of Two Different Objects?

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

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 View Related

Illustrator Scripting :: Selecting Objects By Group Names?

Feb 17, 2012

How to select objects by their group names?
 
I'm working with imported graphics, and the objects appear in the AI layer hierarchy grouped and named according to their object types in the native program (see the attached image). The problem lies with the annotation objects: they are made of different parts for which different graphic styles are needed; however, they all come in one layer and are difficult to access for global operations. I need to do different things with the different object types (delete the POINT's, move the LINE's and LWPOLYLINE's to different layers, etc...). The option of selecting objects individually is ok for small data sets, but you can imagine this becomes untenable in a hurry.
 
Two possible solutions I've considered:

(1) change the output parameters in the source program such that the objects come into illustrator with different graphics allowing them to be accessed through the "Select same ..." tools; it would work, but is problematic for the source program

(2) print the annotation graphics with their desired graphic appearance to pdf rather than importing the source file directly in AI, then open in AI to render the remaining graphics; again, this works but introduces inefficiency in the process. Also, the print process tends to explode closed paths requiring more inefficient path tinkering in AI.
 
I would like to tell AI to select all objects named "POINT" or "LINE" etc... but have found nothing in the documentation or forums on whether this is possible.

View 1 Replies View Related

Illustrator Scripting :: Creating Bounding Rectangle And Selecting Particular Objects?

Aug 23, 2012

I'm extremely new to scripting; I managed to create a script to extend the artboard of my documents (which I was extremely proud of given my inexperience!) and another to align a couple of objects alongside each other, but my attempts to script some new code has met with failure.
 
Firstly, I need some Illustrator CS4 Javascript code that will create a bounding rectangle for the selected object(s). The selected object(s) will always be rectangular; no irregularly-shaped objects. I know this should be simple, but I can't work out the variables/attributes involved.
 
Secondly, some code to select the leftmost object in a document. And the equivalent for the rightmost object.
 
If it makes any difference, I'll be stitching these scripts together with an action to achieve the following workflow.

Two EPS files are dragged into an empty document as 'Linked Files'.The two Linked Files are aligned alongside each other. (Using a script I've already written.)The leftmost Linked File is selected and has a bounding rectangle created, which is then used to mask the Linked Object.The rightmost Linked File is then selected and has a bounding rectangle created, which is then used to mask the Linked Object.Both masked Linked Files are selected, and a bounding rectangle is created to mask them into the same Clipping Mask group.The artboard is set to the dimensions of this combined masked pair (I've managed to write that script already).The Linked Files are embedded into the document. 

The reason for this is because we have EPS map files exported from AutoCAD that are left- and right-hand pages. These need to be combined into one file, but when they are brought in they lose their masks as the BBOX element is not recognised by Illustrator. The double-masking in my process above is needed to ensure that content from either map doesn't overlap the other half of the map.

View 9 Replies View Related

Illustrator Scripting :: How To Copy Specific Area (Artboard) And Paste It To New Document

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

Illustrator :: Copy And Paste Position And Size Of Two Different Objects?

Sep 20, 2012

I have a question, quite a tricky one. Is there any way 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 3 Replies View Related

AutoCad :: Copy / Paste Objects From One Layer In First File To Different Layer In Second File

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

Illustrator Scripting :: How To Select And Copy To Clipboard A Path On Layer

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

Illustrator Scripting :: Iterate And Remove Objects In A Layer

Apr 9, 2013

I am trying to iterate through objects in a layer and if the object satisfy a condition, I want to remove it.
 
Problem is that from what I suspect, if I use a "for loop" then when I remove an element, the initial length of the loop becomes invalid by removing the element. So what I would need is to iterate through objects in another matter and I am clueless.

View 3 Replies View Related

Illustrator :: When Copy Layers - Objects Grouped And Layer Information Disappeared

Oct 17, 2012

I have a single file with couple objects on different layers. When I copy/paste into other files, the objects seem to be grouped and layer information disappeared. Can I move around objects with layer setting as well?

View 4 Replies View Related

Photoshop :: How To Copy And Paste On Another Layer In Same Location As Previous Layer

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

3ds Max Animation :: Copy / Paste Keys Between Objects?

Jul 31, 2011

i'm guessing in track view/curve editor or in the parameter editor...

View 1 Replies View Related

Photoshop :: Unable To Copy / Paste Smart Objects

Aug 5, 2013

I can't copy, paste or paste special layers nor images.  Areas are grayed out. 

View 1 Replies View Related

AutoCAD 2010 :: Possible To Copy And Paste Visio Objects Into DWG?

Sep 21, 2012

I have objects in Visio that I want to place into an AutoCad DWG. They can go in as a block. How do I do that?

View 6 Replies View Related

AutoCAD .NET :: Copy And Paste Objects Fatal Error

Nov 21, 2011

 I am using Visual Studio 2010 and AutoCAD 2012 64bit on a Windows 7 64 bit machine 8GB of ram. I am trying to copy a user selection and then paste the selection in another drawing or the same drawing based upon buttons on my form.  The user will specify a base point and then select all of the objects to copy.  I store the objects in a selection set so that the user could paste the selection multiple times into various drawings.  The copy works correctly and I get a selection set from which I obtain the object Ids along with a point to transform my objects.  My problem occurs during my paste routine. The Deep Clone Objects or WblockCloneObjects seems to be working correctly and then I get into my code to transform the entities. I'm also storing some information about the blocks so that I can manipulate our proprietary database later via another function call.  It seems like everything works correctly, but when I select a large number of objects I receive a fatal error. FATAL ERROR: Unhandled Access Violation Reading oxffbc4008 Exception at ed010939h.  It seems that the number of objects that people can copy varies on each user's computer.

View 2 Replies View Related

AutoCad :: Paste Objects Which Copy With Base Point From Another Drawing

Mar 24, 2011

Since 2 days i can paste objects any more wich i copy with base point from another drawing.

When i say paste it doesnt give the question to wich point i wanna paste.

I cant find the problem did i hit a hotkey wich disable it or?

View 9 Replies View Related

Photoshop :: Copy Mask On One Layer And Paste It Onto Another?

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

Paint Shop Pro :: X4 Copy And Paste As New Layer

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

Photoshop :: Copy/paste Shape Into SAME LAYER

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

Photoshop :: Copy/paste Shape Into SAME LAYER

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

Illustrator Scripting :: Selecting Open Paths In CS6

Jul 10, 2012

I have created this script for selecting open paths in illustrator cs6 as the graffix plugin is not working under CS6.
 
Just save the following text in /Applications/Adobe Illustrator CS6/Presets/en_US/Scripts/Select Open Paths.js
 
if (documents.length > 0 && activeDocument.pathItems.length > 0){
var allPaths = activeDocument.pathItems;
var allPathsCount = allPaths.length;
var openPathsAreLocked = false;  

[Code] ........

View 4 Replies View Related

Photoshop :: How To Copy And Paste Vector Art From One Layer To Another Keeping All Of Its Attributes

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

Photoshop :: How To Select Copy And Paste Image That Has Layer Mask

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

Paint Shop Pro :: Copy And Paste Layer Into Exact Location

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

AutoCad :: Selecting Isolated Layer All Objects In One Window

Jul 2, 2009

i am using Acad 2005 for two years. since now i started to use acad 2010. i did find the difference in layer isolation in 2005 if you do layer isolation, only the particular layer visible. then can be select all of them in one window. without disturbing other layers. but in 2010 while i isolate a layer, other layers also visible in the backround. when i select the isolated layer in one window, also the backround layers also getting selected.

i am facing problem in selecting the isolated layer all objects in one window.how to do selection or how to work on that?

View 9 Replies View Related

AutoCad :: How To Paste Objects To Specific Layer

Sep 27, 2013

I want to copy some objects from one drawing to another. However, in the source drawing the objects are on one layer, but I want them on another layer in the target drawing. I know pasting the objects as a block fixes the problem, but as soon as I explode them they're back on their original layer - and I have to select them all and move them to the preferred layer - which can be tedious with multiple objects.

View 9 Replies View Related

Photoshop :: How To Copy And Paste Shape (or Layer) From One File To Another Keeping All Of Its Attributes

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

Illustrator Scripting :: Automate Action Set - Selecting Raster Images

Mar 8, 2013

I would like to automate an action set that selects a raster image (linked file) that has been grouped with vector art and then converts that selected raster image into a vector (live trace)
 
I'm using cs5 on a mac. As far as format goes I have hundreds of eps files that all have at least one raster bitmap tif which was imported as a linked file and then grouped with vector art. So I will like to run a batch script command that will select only that bitmap raster image (because I want to maintain the present vector art in the file) and convert that bitmap tif to vector- and save the file which will hopfully be in vector format.

View 2 Replies View Related

Illustrator Scripting :: Selecting Text Frames On All Visible Layers

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

Illustrator Scripting :: Paste In Place Across Layers Script

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







Copyrights 2005-15 www.BigResource.com, All rights reserved