---
title: "Orientation"
url: "https://help.maxon.net/ag/en-us/Content/html/Generator_orientation.html"
section_path: "Generators > Numeric > Orientation"
description: "This generator returns the orientation (an angle) between 2 points, based on the transformations that affect each layer. This is useful to drive the …"
---

# Orientation

## Brief Description

This generator returns the orientation (an angle) between 2 points, based on the transformations that affect each layer. This is useful to drive the rotation of a Transform to make an element always oriented towards another.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Source A Mode / mode0` | Choice | This Transform's Position | - *This Transform's Position*<br>- *Linked Layer/Path/Transform*<br>- *Custom Point* |
| `Layer/Path/Transform A / link0` | Link | - | This parameter allows to link either to a 2D Transform, 2D Layer, 2D Path |
| `Point A / customPos0` | Float 2D | 0, 0 |  |
| `Source B Mode / mode1` | Choice | Custom Point | - *This Transform's Position*<br>- *Linked Layer/Path/Transform*<br>- *Custom Point* |
| `Layer/Path/Transform B / link1` | Link | - | This parameter allows to link either to a 2D Transform, 2D Layer, 2D Path |
| `Point B / customPos1` | Float 2D | 0, 0 |  |
| `Offset / offset` | Float | 0 |  |
