# Follow Object

This map input allows the associated object to follow another target object.

### Basic Setup

<figure><img src="/files/M2cXsxXJACUdFYMFkr0r" alt=""><figcaption></figcaption></figure>

After creating the Follow Object Map Input, you have the option to choose the target object that you like to follow. Clicking on the parameter to bring up the targeting window, select the object that you want to follow.

Some additional options include:

* enabling / disabling specific properties like: Position, Rotation, Zoom and Focus
* including any additional parameters that you like to include. This can be anything you like, but for example this can include FoV values of a camera, or k values for the lens distortion

### Why use this map input?

One typical use of this feature is where you would have multiple data source coming in for a type of object and you would like to control / route that data from different data source to the necessary destination.

One basic way to achieve this routing is have multiple map inputs linked to an object, and you create some kind of logic to enable / disable the map input for what you need.

This is simple, but the downside for this workflow is that you can only do a hard cut between the data source.&#x20;

If you like to achieve a smooth transition between this switch you can make use of this Follow Object Map Input.

### Advanced Setup

* Create an objects based on the different data source that you have.
* Create an additional output object which would have the Follow Object as the Map Input
  * This is the object that will be used to actually send data out, so add any Map Output as necessary
* Create you logic as to when you like to switch between from one data source and utilize the Morph function to morph the `Target Object` parameter from the `Follow Object` Map Input


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stage-precision.gitbook.io/grid/maps-input-and-output-with-filters/map-input/follow-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
