---
title: "getParent"
canonical: "https://help.vicon.com/space/Shogun17/13536593/getParent"
format: markdown
---
# Description

Retrieves the parent of a module. If the module has no parent, and empty string, "", is returned.

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getParent module [-fullPath] [-nameOnly]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `moduleName` | string | yes | The module to get parent for. |

### Flags

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `fullPath` | 0 | — | nameOnly | — |
| `nameOnly` | 0 | — | fullPath | — |

## Return value

string

## Examples

```plaintext
// Get the parent of the "rhumerus".
string $parent;
$parent = `getParent "rhumerus"`;
print $parent;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getChildren](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536343)
- [getModules](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536571)
- [parent](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13536940)
- [unparent](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537529)