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

Gets the active editing tool type.

Here is a list of editing tools and their type numbers:

| Editing Tool | Type number |
| --- | --- |
| New Point | 0 |
| Linear | 1 |
| Bell | 2 |
| Flatten/Expand | 3 |
| Offset | 4 |

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getEditTool` |

### Arguments

None

### Flags

None

## Return value

integer 

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Get the current editing tool, and cycle to the next one.
int $tool, $next;
 
// Get the current one.
$tool = `getEditTool`;
 
// Figure out the next one. 
$next = $tool + 1;
if( $next > 4 )
{ 
$next = 0;
}
setEditTool $next;
```

# Additional information

## Related commands

- [graphView](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736705)
- [manipulator](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737068)
- [setEditTool](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737831)