---
title: "Position to Path"
url: "https://help.maxon.net/ag/en-us/Content/html/Position_to_path.html"
section_path: "Shape and Mask Animation > Position to Path"
description: "The Position to Path Generator converts a trajectory, represented by the evolution of a 2D parameter over time, into a Path."
---

# Position to Path

The *Position to Path* *Generator* converts a trajectory, represented by the evolution of a 2D parameter over time, into a *Path*.

**To add it to a *Path Group*, click on the "+"** button next to it and select *Position to Path*.

You can add a *Stroke Style* to visualize the *Path* created by this *Generator*.

## Keyframing the Animated Position Parameter

Selecting this *Generator* in the *Selection Overview* will display its parameters in the *Properties* section. The first parameter is *Animated Position*.

Creating 3 keyframes at different times on this parameter will draw a *Path*. Its length will always be constant, no matter the current time, because this *Path* represents the trajectory created by these 3 keyframes, just like a [Motion Path](https://help.maxon.net/ag/en-us/Content/html/Motion_path.html.md) represents layer trajectory.

[Video: position_to_path.mp4](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/position_to_path.mp4)

All existing keyframes on this parameter are accumulated to draw the *Path*, even the ones outside of the composition range. If a keyframe exists at 20 seconds and you decide to reduce the composition duration to 10 seconds, this keyframe will still be used to draw the *Path*.

## Dynamically Draw Layer Trajectory

Creating keyframes on the *Animated Position* parameter is not a common example. It's more common to connect it to another parameter, such as *Layer Position*.

To demonstrate this, we need an additional 2D layer with *Position keyframes*. We want to convert this layer's trajectory into a *Path*, then draw it with the *Stroke Style*.

- Select the layer
- In the *Properties* section, right-click on *Position* and select *Copy*
- Select the *Shape Layer*, then click on the *Position to Path* *Generator*
- In the *Properties* section, right-click on *Animated Position* and select *Paste (Linked)*

A **live link** will be established between the *Position* keyframes and *Path Generator*. Changing the layer's *Motion Path* will automatically change the generated *Path*.

[Video: position_to_path_update.mp4](https://help.maxon.net/ag/en-us/Content/Resources/Images/chapters/shape/position_to_path_update.mp4)

> **Note:** All of these operations can also be performed in the ***Timeline***, but the ***Inspector*** offers quicker access to parameters.

## Not Only for the Position Parameter

The example shown here, where the layer *Position* draws a trajectory, is the most understandable because it's the most visual. But bear in mind that any 2D parameter can be connected to the *Animated Position* parameter.

Examples include:

- Offset of a *Start Path Generator*
- *God Rays Position Modifier*
- Center of a [2D Tracker](https://help.maxon.net/ag/en-us/Content/html/2D_Tracking_Overview.html.md)
- Etc. ...
