DocumentationDocumentation
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
Darty.ai
Get Started
Basics
Methods
Colors
UI
Workflows
  • Get Started

    • Installation and Login
    • Your First Darty Document
    • Installers - Instructions and Downloads
    • Licensing
  • Basics

    • Darty Basics
    • Darty Header
    • Darty Tags
  • Methods

    • Darty Methods
    • Align
    • Appearance - General
    • Appearance - Colors & Swatches
    • Appearance - Effect Properties
    • Artboard Methods
    • Arrange
    • Attributes
    • Clean Document
    • Clipping Mask Make and Release
    • Color Mode
    • Compound Path - Make and Release
    • Distribute
    • Duplicate
    • Expand
    • Fit To Bounds
    • Group & Ungroup
    • Layer Methods
    • Outline
    • Pathfinder
    • Place
    • Rasterize
    • Reduce To Basic Appearance
    • Remove
    • Swatch Methods
    • Tags Methods
    • Text
    • Transform Methods
    • zOrder
    • Skip and *
  • Colors

    • Color Libraries
  • User Interface

    • Darty User-Interface
    • Tags Tab
    • Data Tab
    • Export Tab
    • Settings Tab
    • Help Tab
    • Export Settings
    • Export Validation
    • Job Export Settings
    • Export Counter Variables
    • Export Progress
    • Export Presets
    • Recent Files
    • Color Dialog
  • Cloud Data

    • Darty-Ai Cloud Data Integrations
    • Darty-Ai with Google Sheets
  • Workflows

    • Darty Workflows
    • Darty Preview
    • Darty Export Workflows
    • Darty Data Workflows

zOrder

The zOrder method is for changing the zOrder of tagged artwork, relative to a target, i.e. where the artwork appears on the layers panel.
For moving layers see the Layer Methods. For moving artboards see the Artboard Methods.
See also the Arrange Method for a simple method of moving artwork and layers, backwards and forwards and to the front and back.

Target and Location

To move the artwork to a specific z position, set a targetTagSearch and / or a targetLayerName or targetLayerNumber and set the relative location.
For example tagSearch: cat location: below targetTagSearch: tree targetLayerName: Background Scene.
Set the location value to aboveAll or belowAll to move the artwork at the top or bottom of the document.
Set the location value to top and bottom to move the artwork to the top or bottom of a layer or group.
Set the location value to above and below to move the artwork above or below a tagged target artwork or layer.

Example Spreadsheet and Screenshots

Compare each row in the spreadsheet below with its associated screenshot below.

*
zOrder
tagSearch: catlayerNamelayerNumberlocationtargetTagSearchtargetLayerNametargetLayerNumber
catabovetree & left
catBackgroundabovetree & left
tree & middlebelow1
cat2topForeground
cataboveAll

Original Artwork

Original Artwork

Original Layers Panel

Original Layers Panel

Artwork After Row 1

Artwork After Row 1

move tagSearch: cat location: above targetTagSearch: tree & left

Layers Panel - Row 1

Layers Panel Row 1

Artwork After Row 2

Artwork After Row 2

move tagSearch: cat layerName: Background location: above targetTagSearch: tree & left

Layers Panel - Row 2

Layers Panel Row 2

Artwork After Row 3

Artwork After Row 3

move tagSearch: tree & middle location: below layerNumber: 1

Layers Panel - Row 3

Layers Panel Row 3

Artwork After Row 4

Artwork After Row 4

move tagSearch: cat layerNumber: 2 location: top targetLayerName: Foreground

Layers Panel - Row 4

Layers Panel Row 4

Artwork After Row 5

Artwork After Row 5

move tagSearch: cat location: aboveAll

Layers Panel - Row 5

Layers Panel Row 5

zOrder Properties

ModeDescription
layerName 
The layer name containing the tagged artwork. If no layer is provided then the tagged artwork will be moved regardless of it's containing layer.
Sample Values: Layer 1, Layer 2
layerNumber 
The layer number containing the tagged artwork. If no layer is provided then the tagged artwork will be moved regardless of it's containing layer.
Sample Values: 1, 2
location 
Where the tagged artwork should be moved relative to the target.
Use aboveAll or belowAll to move the artwork at the top or bottom of the document.
Use top and bottom to move the artwork to the top or bottom of a layer or group.
Use above and below to move the artwork above or below a tagged target artwork or layer.
Valid Values: aboveAll, belowAll, above [Default], below, top insideOnTop insideTop, bottom insideOnBottom insideBottom
skip 
skip is a generic property for all methods, when set to true, the method will be skipped. See * and Skip for details.
Valid Values: true or false
tagSearch 
The tag search of the artwork to move.
Sample Values: animal, animal | tree , cat & tabby, animal & !cat
targetLayerName 
The layer name that contains the artwork or the layer itself that the original artwork should be moved relative to. See useSingleTarget below.
Sample Values: Layer 1, Layer 2
targetLayerNumber 
The layer number that contains the artwork or the layer itself that the original artwork should be moved relative to. See useSingleTarget below.
Sample Values: 1, 2
targetTagSearch 
The tag search of the artwork that the original artwork should be moved relative to. See useSingleTarget below.
Sample Values: animal & !cat
Last Updated: 3/18/26, 2:06 AM
Contributors: Trevor
Prev
Transform Methods
Next
Skip and *