Skip to main content
Legend
August 28, 2023
Question

Bug or feature? Cannot copy layer definition...

  • August 28, 2023
  • 6 replies
  • 1459 views

...per drag 'n drop to another document. Is this normal?

 

Hello!

I'm used to copy layers in Photoshop like this, because that's the only way. An alternative would be to load layers from another document, but guess what - not possible. I mean, you can load styles and everything similar from other documents, why not layers? 

This topic has been closed for replies.

6 replies

Community Expert
August 29, 2023

@Doc Maik said: "… In case I actually wanted to copy the object, the search starts."

 

Absolutely not.

Open the Layers panel. Make the layer you want to "copy over" the active one. Draw out e.g. a new rectangle and cut/paste that to your target document. Before make sure that option Paste Remembers Layers is turned on in the Layers panel.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

 

Community Expert
August 29, 2023

@Doc Maik said: "… What I didn't know until a few minutes ago, though working with ID for over 10 years now: the objects in a layer are shown page specific. "

 

Hi @Doc Maik ,

no, the objects in a layer are not shown "page specific".

They are shown spread specific.

All the pages of a spread plus the pasteboard around the pages of that active spread.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

 

 

Doc MaikAuthor
Legend
August 29, 2023

 

Community Expert
August 28, 2023

@Doc Maik said:

"Guys, please, it's about the layer definition, not an object. In PS the layer definition is also not a bunch of pixels. I know all the things you suggest but they a) require to have an object and b) that object must be assigned to the layer definition and c) I would have to remove the object afterwards."

 

Hi @Doc Maik ,

see my post where it is all about layer definition.

And layer definitions that you cannot transport with a copy/paste command!

Read into my reply here that I did some hours ago:

 

https://community.adobe.com/t5/indesign-discussions/bug-or-feature-cannot-copy-layer-definition/m-p/14043050#M539868

 

The one definition of a given target layer in a target document that is missing there is the "stacking order" after the layer was added with that little script. And we could add features to the script like that the script first will check if a layer with that name already exists etc.pp. and act upon that; e.g. it will modify the target layer's feature to the one from the source document.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Community Expert
August 28, 2023

@Doc Maik said: "… I know all the things you suggest but they a) require to have an object and b) that object must be assigned to the layer definition and c) I would have to remove the object afterwards."

 

Hi @Doc Maik ,

exactly. You nailed it.

One could script this. And this is the only way to be as accurate as possible in regards of the copied layer's features:

 

ignoreWrap
label
layerColor
lockGuides
locked
name
printable
showGuides
visible

 

In principle this little script can do it when two documents are open and the source document is the front most, the active document and the layer in question is the active layer:

 

 

var sourceLayer = app.documents[0].activeLayer;
var targetLayer = app.documents[1].layers.add();
targetLayer.properties = sourceLayer.properties;

 

 

Note 1: Synching layers is not an option with the InDesign book features.

You could enforce this with synching parent pages if there are objects assigned to all layers, but the issue with this is the stacking order in the synched documents…

 

Note 2: If you copy/paste an object from document to document and the option is enabled, that the object's layer should remain after pasting, still some properties of the new layer you'll see in the target document could be changed. E.g. the color of the layer, that the layer is not printable (suddenly it is) etc.pp.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Willi Adelberger
Community Expert
Community Expert
August 28, 2023
  1. In the layer panel menu activate paste remembers layer.
  2. Put any object on this layer.
  3. Cope or cut this object.
  4. Paste this object in a new document. 

The layer is pasted.

Doc MaikAuthor
Legend
August 28, 2023

Thanks, but the topic wasn't about how to copy an object AND the layer, it was about how to copy only the layer, which may not make to some at all, but to me it does. Even if the layer isn't used, I would like to have the same setup of layers and other things in documents. I could, of course, create and use a template, but sometimes you already have a file and want to align it to others.

Robert at ID-Tasker
Legend
August 28, 2023

Copying one Page should do the trick - after that you can delete this page - and its contents - but layers will remain. 

 

But the side effect will be that you can also transfer colors and *Styles. 

 

Robert at ID-Tasker
Legend
August 28, 2023

Which object(s) from which page(s) would you like to load - and to what page(s) in the destination document? 

 

Too many variables. 

 

Layers in Photoshop are different - they are objects, bunch of pixels and a lot of properties. In InDesign layer is just a property of the object - not an object itself. 

 

If you want to copy layer's "definition" - you need to copy any of the objects on this layer. 

 

Remember to select "Paste Remembers Layers":

https://helpx.adobe.com/uk/indesign/using/layers.html

 

It could be easily scripted - you need to give more details. 

 

Doc MaikAuthor
Legend
August 28, 2023

I wrote layer definiton in the title. This I want to copy. Same as copying a layer in Photoshop wouldn't copy content assigned to that layer. 

I know how to do it in ID, though I don't want to copy content, at least not always.

Robert at ID-Tasker
Legend
August 28, 2023

In InDesign layer doesn't have too many "definitions" - name, color, if it's visible, locked or printable.  

 

Maybe that's why no one thought about offering such "feature"?