---
title: "getModule"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738353/getModule"
format: markdown
---
# Description

Gets the name and location of an object in a scene

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getModule [-fullPath] [-nameOnly]` |

### Arguments

None

### Flags

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `fullPath` | 0 | — | nameOnly | Returns full path to an object |
| `nameOnly` | 0 | — | fullPath | Returns only the name of an object |

## Return value

string

## Examples

```plaintext
//Get selected module(s) to have data baked  
string $sel[] = `getModules -selected`;
string $characterNode[] = `getModules -selected -type Character`;
```