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

Returns the color of the marker connection between the two given markers as an integer array consisting of RGB values.

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getMarkerConnectionColor "sourceMarker" "targetMarker"` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `sourceMarker` | string | yes | Marker at one end of connecting line. |
| `targetMarker` | string | yes | Marker at other end of connecting line. |

### Flags

None

## Return value

integer array

Returns an integer array of RGB color values for the connection line between two markers. 

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Create a red connection line between LFHD and RFHD.
setMarkerConnection "LFHD" "RFHD" -color 255 0 0;
 
// Get the connection line color between LFHD and RFHD
// and print the RGB values.
int $color[] = `getMarkerConnectionColor "LFHD" "RFHD"`;
print $color;
```


# Additional information

## Related commands

- [setMarkerConnection](https://vicon-help.atlassian.net/wiki/spaces/Shogun17/pages/13537122)