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
ADVERTISEMENT
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
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
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 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
Jan 17, 2014
I was hoping to create a JS script to move objects away from common center based upon their current position. I was thinking to use a single selected path item as the center based on its position x/y and width/height. Using this reference point the script would then move away all other path items from this center point based on a desired amount and with uniform increments given their current location from this center. I was thinking cos and sin would be my friend in this case, however they seem to have become my foe instead. ;-)
Â
Does this sound doable? What am I missing, doing wrong, misinterpreting? Below is a non-working attempt, I can't seem to sort things out, perhaps I was close and missed it or maybe I am super way off and its more complex than I thought. However at this point I am confused across my various failed attempts this only being one of them.Â
Â
// Example failed code, nonworking concept
var docID = app.activeDocument;
var s0 = docID.selection[0];
pID = docID.pathItems;
var xn, yn;
var stepNum = 20;
[Code]....
View 13 Replies
View Related
Jan 20, 2009
Have 2 files open with same dimensions. I have a little number on the first file I would like to copy & paste to the second. I want it in the same exact position on the second file as it appears on the first.
I thought if you dragged the layer from the first file onto the second while holding shift key would do it, but it only places the number on the center of the page.
View 2 Replies
View Related
May 23, 2006
I'm batching my signature onto a bunch of photos at the bottom righthand corner. I put my preferences to percentage rather than pixels so I could try things for most sized-photos. My dilemma now goes like this:
I record, open my signature, copy & paste to the other image (works fine). The signature shows up in the middle of the other image and rather than moving it manually where it'll be different for vertical and horizontal photos, is it possible to align right and bottom or get specific with entering numbers such as 90% horizontal and 90% vertical placement?
Basically, when you copy & paste to a different open file, is there a way to specify exactly where it should go when you paste it, or do you have to manually move it?
View 3 Replies
View Related
Jul 31, 2011
i'm guessing in track view/curve editor or in the parameter editor...
View 1 Replies
View Related
Aug 5, 2013
I can't copy, paste or paste special layers nor images. Areas are grayed out.Â
View 1 Replies
View Related
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
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
Jan 25, 2008
size changing when I copy and paste a layer from one file to the next. I will use a hypothetical for an example but the concept and process has been confusing me on many projects.
•Ok I have a new document blank page 5’’x5’’.
•I would like to put a circle on there covering approximately 1/4.
•I open up another file 2.5’’x.2.5’’. Place my circle on there going almost all the way to the edges. (lets pretend the circle is detailed and I do not want to resize it again)
•I copy my circle, go over to the 5’’x5’’ image and paste. The pasted layer is always much larger then what it started. Not a 2.5’’ circle.
I know about smart images and how to resize without distortion. My problem always occurs when I copy and paste. Well not problem but operator error.
View 1 Replies
View Related
Oct 4, 2012
is there a way to get position of any selected object? It seems like normally you have to dive into specific item like textFrames to get position, but was curious if there was a generic way of doing this for selected objects.
View 5 Replies
View Related
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
Jan 11, 2008
I do a 8.5 x 11 reso around 75 or up to 150. I lasso out something and paste it to my doc and sometimes it is tiny. Is that because my reso is to high?
View 1 Replies
View Related
Feb 21, 2012
Why does this not work? The textFrameItem.anchor behaves as if it is a read only value but it isn't supposed to be. What am I doing wrong?
Â
function pointText(onLayer,str){
   var pointText = onLayer.textFrames.add();
   pointText.contents = str;[CODE].....
View 1 Replies
View Related
Oct 24, 2013
How can I get keyboard cursor(caret) position in javascript?
Â
I made a multilined edittext in ScriptUI.
Â
But It's not working about Enter key.Â
Â
All I want is when I push 'enter' key, begin a new line.
Â
If I know how to get keyboard cursor position, I can insert ' ' character in middle of sentances.
Â
////////////////////////////////////////////////////////////////////// ///////////////
 var win =new Window ("dialog", '');
win.orientation = "column";
 var grpContents = win.add("group")
var codeInput = grpContents.add ("edittext", [0, 0, 150, 550], "", {multiline:true});
codeInput.alignment = ['fill', 'top']
[code]....
Â
I use windowsXP and Illustrator CS3.
View 4 Replies
View Related
Jun 9, 2012
I'm trying to get the position of point text from left anchor if left aligned, middle if center aligned and right if right aligned. is this even possible?
Â
here are the keys of object I am trying to get at:
Â
keys:
Â
story : [Story]
contents : export me
textRange : [TextRange]
textSelection : [TextRange]
rowCount : 1
columnCount : 1
rowGutter : 0
columnGutter : 0
flowLinksHorizontally : true
spacing : 0
opticalAlignment : false
kind : TextType.POINTTEXT
contentVariable : undefined
orientation : TextOrientation.HORIZONTAL
Â
this is what I am using to get at it:
app.activeDocument.textFrames[2].anchor[0]
Â
am i confusing anchor point with baseline position?
View 3 Replies
View Related
Jul 8, 2013
Copy and paste error — Text pastes at half-size.
Â
When I copy and paste text already in my photoshop document, the text retains the styling but the text size is exactly half of what it should be.
Â
I'm using the most recent version of CS6.
View 4 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 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
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
Jan 16, 2013
If I copy/paste a gradient filled object between two Illustrator CS6 documents, the gradient becomes a blend. This doesn't happen however if just drag the object from one open document to another.
Â
Is there a way to correct this copy/paste behaviour?
View 6 Replies
View Related
Oct 4, 2011
I think I've got lots of existing files coming with this problem, the file is really slow and I try to use below method but it didn't work, since there's thousands of script "%AI8_BeginPluginObject" in that AI file.. Any other methods I can use so as to fix it.... and I'm using CS5 version, [UR] .....
View 8 Replies
View Related