## Intro

Apply 3D transformations to Shapes and Sub-Meshes.

## UI

[Common Attributes](/content/docs/nodes/behaviours/common-attributes-behaviours/index.html) +

**Position** \- Set the X and Y position.

**Position Z** \- Set the Z position.

**Rotation** \- Set the X and Y rotation.

**Rotation Z** \- Set the Z rotation.

**Align X** \- Align the pivot point to the Shape’s bounding box for rotation around the X axis. A value of `-1` will position the pivot to the left edge, a value of `1` will set it to the right edge.

**Align Y** \- Align the pivot point to the Shape’s bounding box for rotation around the Y axis. A value of `-1` will position the pivot to the bottom edge, a value of `1` will set it to the top edge.

**Use Levels** \- Affect different levels of the Shape's hierarchy. See the example below and the [Sub-Mesh](/content/docs/nodes/behaviours/sub-mesh/index.html) page for more info.

**Level Mode** \- These presets set the Level value:

- **Custom...** \- Manually set a **Custom Level**.
- **Text (Lines)** \- Sets a Level value of 1.
- **Text (Words)** \- Sets a Level value of 2.
- **Text (Characters)** \- Sets a Level value of 3.

**Custom Level** \- Manually set the Level value.

### Example

1. Create a Shape.
2. In the [Attribute Editor](/content/docs/user-interface/menus/window-menu/attribute-editor/index.html), click the `+` button on the **Deformers** attribute.
3. Choose **3D Matrix**.
4. Double click the **3D Matrix** in the [Scene Window](/content/docs/user-interface/menus/window-menu/scene-window/index.html) to load it into the **Attribute Editor**.
5. Scrub the **Rotation X** attribute.

The Shape will rotate around its X axis to give the appearance of a three dimensional object.

### Example - Depth Sorting

01. Create a [Rectangle](/content/docs/nodes/shapes/basic-shape/rectangle/index.html).
02. Enable the Rectangle's **Stroke**.
03. With the Rectangle selected, click the [Duplicator](/content/docs/nodes/shapes/duplicator/index.html) icon in the [Shelf](/content/docs/user-interface/menus/window-menu/shelf/index.html).
04. Set the Duplicator's:
    1. **Distribution** to `10`.
    2. **Size** to `600`.
05. Click the `+` button on the Duplicator's **Deformers** attribute and choose **3D Matrix** from the list.
06. Right click on the 3D Matrix's **Position Z** attribute > `Add Behaviour > Value`.
07. Set the Value's **Value** to `-100`.
08. On the Value's **Falloffs** tab, right click in the **Falloffs** input > `Add Falloffs > Falloff`.
09. On the **3D Matrix**, check **Use Levels**.
10. Move the Falloff left/right.

As the Falloff moves over each rectangle it moves in front of the others.
