---
title: "setEditTool"
canonical: "https://help.vicon.com/space/Shogun18/13668103/setEditTool"
format: markdown
---
# Description

Sets 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

|  |
| --- |
| `setEditTool toolID` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `toolID` | int | yes | ID of the Editing Tool to set active. See table above for valid values. |

### 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

- [getEditTool](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668348)
- [graphView](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13669028)
- [manipulator](https://vicon-help.atlassian.net/wiki/spaces/Shogun18/pages/13668960)