ID JS CS2 - CS3: copy items inline/anchored in a new layer...
Hello:
I was wondering if someone has a script to copy an object inline/embedded and place a copy of it in the same position on a new layer without him being anchored to what anyone on the new layer? I don't want to remove the embedded/inline object from the first layer. I want to just copy the size and position on a new layer.
I would be very grateful for your help.
Thank you!
Theresa
Hey!
Try this: (this has been tested in CS5 and CS4, but it should work in CS3 as well)
var myDoc = app.activeDocument; // use to process entire document var myItems = myDoc.allPageItems; // use to process just current page // var myItems = app.activeWindow.activePage.allPageItems; var foundObjects = Array(); for(var i = 0; i < myItems.length; i++){ if(myItems[i].parent instanceof Character){foundObjects.push(myItems[i]);} } if(foundObjects.length > 0){ var myDestLayer = myDoc.layers.add({name:"Anchor/Inline Duplicates"}); for(var i = 0; i < foundObjects.length; i++){ var newDuplicate = foundObjects[i].duplicate(myDestLayer); newDuplicate.geometricBounds = foundObjects[i].geometricBounds; try{newDuplicate.graphics[0].geometricBounds = foundObjects[i].graphics[0].geometricBounds;}catch(_){} } }
I hope that helps!
--
tomaxxi
http://indisnip.WordPress.com/
Tags: InDesign
Similar Questions
-
Try Powershell Copy-Item, get the message "there is not enough space on the disk.
I'm using Powershell 2.
I'm trying to copy a file, not very complicated.
Copy-item D:\Outgoing\tsc.sqb D:\Incoming
I get this:
Copy-Item: there is not enough space on the disk.
On line: 1 char: 10
+ Copy-item< d:\outgoing\tsc.sqb=""> >
+ CategoryInfo: NotSpecified: (:)) [Copy-Item], IOException)
+ FullyQualifiedErrorId: System.IO.IOException, Microsoft.PowerShell.Commands.CopyItemCommandIf I replace Copy-Item by Move-Item, everything works fine. I didn't ' t want to move the file, however, simply copy it.
Any ideas? Files is 230 KB or more.
Hi BarryFreeman,
You can ask your question in the TechNet next to all the script help forum:
http://social.technet.Microsoft.com/forums/en-us/categories/
-
How to upgrade After Effects cs2 >; cs3?
How to upgrade After Effects cs2 > cs3?
You do not have. CS3 was a paid upgrade and is no longer available.
Mylenium
-
I had to update my windows computer and you can no longer open Photoshop cs2. trying to find help with this new system is not easy to use to put it kindly. I downloaded the program and don't have the available key. I tried to sign in but where.
For Photoshop CS2 activation has been reprocessed, so your original drive and the serial number does not work.
As an owner of CS2, Adobe has a copy without activation and serial number, to which you are entitled.
The serial number is to the right of the download link for Windows. You'll need this one, not your old number.
Get them here: download Acrobat 7 and CS2 products
-
Can not get ProfileManager to open, despite having followed closely RUN instructions in the HELP section, copy the old backup profile to new computer.
This has happened
Each time Firefox opened
== I had to use a new computer because of the accident on the old.
You don't need to run the Profile Manager to move your profile to a new PC, see this.
http://support.Mozilla.com/en-us/KB/recovering+important+data+from+an+old+profile -
Why can I not use my old genuine copy of windows Vista on my new pc?
Windows vista on new pc
Why can I not use my old genuine copy of windows vista on my new pc?
I received an activation message and I don't know what to doIf your Vista came pre-installed in your old PC, then this is an OEM license that cannot be transferred to your new PC.
To analyze and solve problems for Activation and Validation, we need to see a full copy of the report produced by the MGADiag (download and save to the desktop - http://go.microsoft.com/fwlink/?linkid=52012 ) tool
Once saved, run the tool.
Click on the button continue, which will produce the report.
To copy the report in your response, click the button copy in the tool (ignore the error at this stage), and then paste (using r-click and paste or Ctrl + V) in your response.
-* in your own thread *, pleasePlease also state the Version and edition of Windows cited on your COA sticker (if you have one) on the case with your machine, but do NOT quote the key on the sticker!
http://www.Microsoft.com/howtotell/content.aspx?PG=COA -
Problem with copying and pasting the bottom like a layer
I use Photoshop elements 14. I used the Polygonal Lasso to select part of an image and to turn off the Cup in a new layer. I opened the image I want to use as the background to place the cutting on. I select all and then copy and paste it into the file with the cutting. What appears as a layer of this background in cutting a file image is a tiny part of the original image. For example, the original image is a photo of the entire landscape and all that glue in the bottom layer is a small part of the sky. I changed the resolution of the original background photo and the file with the cutting at the same resolution and that did not help. How can I get the whole background photo to appear as a layer of the file cut on the Photo?
If I understand your problem, using this example, I selected the background flower later and placed on a new layer, layer 1. Then I selected the field of the whole flower to another image and and copy/pasted on layer 2. The problem is not so much the resolution of 2 photos but rather their pixel dimensions. In this example, the dimensions of the field of flowers were much smaller than the image of the close-up.
I resized and then 2 layer to fill the drawing area:
Perhaps it would be easier to pick the flower of the image enlarged and paste the selection in the field of flower photo. Then, you can resize and reposition the flower according to the needs:
If this isn't your scenario, please specify.
-
My computer crashed and after the purchase of another, I used the Migration Wizard to copy all the files to the new computer. Everything was going well until I tried to launch LR6. It was two weeks ago and a search for many pages of the Adobe Web site. I think I've exhausted all the remedies listed without success codes error A12E5 to questions cloud creative, Manager of Application and error 1: Configuration problems. I'm ready to reformat my computer and try again with Time Machine. Help would be greatly appreciated before I waste more time on this task. Any further suggestions?
Migration of Mac with Time Machine WILL NOT WORK with the Adobe program activations due to hidden registration files
Sign out of your account... Uninstall... to run vacuuming...
-non-Cloud programs, to disable the service before uninstalling
-http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)
-using the vacuuming after uninstalling and before reinstalling is often necessary
-https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
-Restart your computer... Sign in to your account... Reinstall
-
I bought Lightroom 3 and installed on my MacBook Pro via a disk. Later, I upgraded via web for Lightroom 5. My question is how can I install a copy of Lightroom 5 on my new iMac?
Download, install and activate...
Lightroom - all versions
Windows
http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Windows
Mac
http://www.Adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh
-
can moving layers between files, be done apart from copy and paste into a new layer?
moving layers between files
can it be done apart from copy and paste into a new layer?
If you want to copy (not move) a layer to another file, click and drag the layer in the layers Panel on the other image.
'Move' means remove the layer from the source file.
-
Having a color changing the question when you copy and paste things into a new document
Hello, I had a question about copying and pasting in photoshop (something I thought I'd be able to handle). See the screenshots below:
First with the move selected tool, I went to command + click on the dark blue model below to highlight and select its layer. Then, in the following screenshot with the marquee tool, I was trying to copy a square piece of 100 x 100 px of the model.
After hitting the command + c to copy, and then I opened a new document with the following and click settings on ok:
I knocked and then command + v to paste what I had copied the new document that I created. However, the part gets confused me is that the color of the background pattern that I copied and pasted is now a different color, as shown below:
The glued color is obviously much darker than the original. Anyone know what is happening here? Very confused.
Some how you have copied a composite instead of the layer + styles.
Try this instead, select the layer as you did
Create a new document as you did
Use the move tool and drag the document on the tab of the new document with the mouse still down, drag your document down to the new document.
Because your new document is set to 100 x 100 is what adapts the layer, so you should be good to go.
If you still have a question of color or something has not transferred correctly let us know.
-
I own Photoshops items 10, installed on my new Mac, mavericks and is now applying a reinstall. How can I reinstall?
Uninstall and then download and reinstall.
PES 10: 11 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html
-
Where can I get version 10 of 10 items? I bought a new PC and need to load.
Where can I get version 10 of 10 items? I bought a new PC and need to load.
Refer to this:
Direct download links for Adobe software
Mylenium
-
Copy of selection in the new layer and change of hue/saturation?
I made a selection around a person's teeth, and I copied it to a new layer.
1. on the new layer, using Hue/Saturation, which is the best way to remove a part of the yellow in the teeth? I chose the yellow in the drop-down menu, if I do something wrong because the teeth appear more white.
2. it is best to do this as an adjustment layer instead of copy on another layer, or is simply a different way of doing the same thing?
Thank you.
When you create the adjustment layer hold
the ALT key then check the use previous layer to create clipping mask dialog box.
This allows the link to the previous layer
-
How to duplicate layers & groups without automatically add a "copy", "copy 1", "# copy" at the end of the new group.
He has been harassing me for a while now, since I often work with the same elements over and over again. His frustration of having to change the name of each layer manually, especially if I copy an entire group.
Is there a setting in Photoshop or maybe an external script that can help solve this problem for me?
See you soon,.
Qiming
You can go to the Forum script:
Maybe you are looking for
-
Card mini PCI for Satellite P10 wireless
Hi all can someone help me find a mini PCI Wireless for my Satellite P10-304 to the United Kingdom?
-
programming of nodal attribute based on a condition
Hello I created a subvi, which displays a nodal configuration window function of the State (display or initialize) I don't want the front to display each time is it possible to insert a program inside the condition below ti determine during which the
-
Modification of the program of "Getting Started" sample to acquire data of multiple frequencies
Dear members, I am very new to the LabVIEW and worked (mainly through aid of Google) to change one of the samples included with LabVIEW 2010 programs to suit my purpose. Essentially, the "Getting Started" program that comes with the LabVIEW 2008 work
-
To be precise, I need an accelerated OpenGL mode I need to play a game,
-
Windows meeting space compatible with xp
I have a vista with allowed meeting space. Can I collaborate with someone who always has an xp machine?