mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-14 22:35:26 +00:00
layer.duplicate adds "<name> copy" above a layer, with the layer's settings, a copy of every object on it and copies of its ruler guides, on document and parent pages, in one undo step. Copied text frames stay threaded to the copies of frames on the same layer and are not threaded to frames on other layers. The anchored objects in a copied story get new ids, and so do its tables and its text anchors outside table cells and notes; its cross-references point at the copied anchors. A group goes on the new layer with all its members, and a copied live caption follows the copied object. A copied override of a parent item overrides that item's copy, and is detached when the parent item is on another layer. Pages hide a parent item's copy where they hide the parent item. A layer whose objects nest more than 64 levels deep is refused. The Layers panel runs it from a layer's context menu (Duplicate Layer "<name>") and when a layer is dropped on Create New Layer.