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

Removes the connecting line between markers in the scene.

If no target markers are specified, all connecting lines originating from the source marker are removed. Otherwise, only connecting lines between the source and each specified target marker are removed.

## Functional area

Data editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `removeMarkerConnection "sourceNode" ["targetNode1" "targetNode2"...]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `targetMarker1` | string | no | Name of the marker connected to source. |
| `sourceMarker` | string | yes | Name of the marker to remove connection(s) from. |

### Flags

None

## Return value

void

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Draw connecting lines around the four head markers, and then
// remove some of them.
setMarkerConnection "LFHD" "LBHD" -color 0 255 0; 
setMarkerConnection "LBHD" "RBHD" -color 0 255 0;
setMarkerConnection "RBHD" "RFHD" -color 0 255 0;
setMarkerConnection "LFHD" "RFHD" -color 0 255 0;
 
// Now remove the connection from the LBHD to the RBHD
removeMarkerConnection "LBHD" "RBHD";
 
// And remove all connections originating from the LFHD
removeMarkerConnection "LFHD";
```

# Additional information

## Related commands

- [getMarkerConnection](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738745)
- [setMarkerConnection](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736757)