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

Returns the value of the named property on the named module at the current time.

The getProperty command is useful in script procedures for automatically identifying the value of the property of a module. The called properties can be in either the **Attributes** or **Channels** panels.

The results may be saved to a variable, which may in turn be passed to a subsequent command or procedure.

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getProperty moduleName propertyName[-c] [-d]` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `moduleName`  

                `propertyName` |  |  | The arguments consist of a module name and any property name that applies for that module type. |

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `c` | 0 | — | — | — |
| `d` | 0 | — | — | — |

## Return value

float

> Macro (scroll-pagebreak)

## Examples

```plaintext
float $loc = `getProperty RBWT "TranslationX"`;
print $loc; 
// Identifies the X position of the marker object RBWT and
// saves the XYZ values to a float variable called "$loc".
float $wt = `getProperty RUPA "Weight"`;
print $wt; 
// Returns the weight of the RUPA to a floating 
// point variable $wt.
```

# Additional information

## Related commands

- [getChildren](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738310)
- [getModules](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736739)