# Get Parent

## Overview

![The Get Parent Node.](/files/JBVZvJeK3BPZ7xP32DbK)

The **Get Parent Node** returns the **Object ID** of an **Object's** *parent*. If an **Object** has no explicit *parent* given by the user, the ID of the **Root Object** is returned. In **Incari**, every **Object** has a *parent*, with the **Root Object** being the *parent* of all **Objects** on the highest level.

To learn more about the **Root Object** and **Scene** structure, click [here.](/incari-studio/objects-and-types/scene-objects.md#structure-in-a-scene)

[**Scope**](/incari-studio/toolbox/overview.md#scopes): **Scene**, **Function**, **Prefab**.

## Attributes

![The Get Parent Node Attributes.](/files/A3FQ6aLvBC4daz9scZsz)

| Attribute   | Type         | Description                                                                                                                |
| ----------- | ------------ | -------------------------------------------------------------------------------------------------------------------------- |
| `Object ID` | **ObjectID** | Sets the *child* **Object** whose *parent* **Object ID** will be returned, if one is not provided in the **Input Socket**. |

## Inputs

| Input             | Type         | Description                                                                |
| ----------------- | ------------ | -------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**.      |
| `Object ID`       | **ObjectID** | Sets the *child* **Object** whose *parent* **Object ID** will be returned. |

## Outputs

| Output             | Type         | Description                                                                                                                            |
| ------------------ | ------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**    | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Parent Object ID` | **ObjectID** | Returns the **ID** of the *parent* **Object**.                                                                                         |

## See Also

* [**Get Children**](/incari-studio/toolbox/incari/object/get-children.md)
* [**Has Children**](/incari-studio/toolbox/incari/object/has-children.md)


---

# 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://docs.incari.com/incari-studio/toolbox/incari/object/get-parent.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.
