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

This command is used to change the current priority node.

Select an object in the scene and execute setPriority. The selected object is now the priority module. If several objects are selected prior to issuing the command, the primary selection among them will be the new priority node.

Usually, the priority object is a CharacterNode so that you do not have to declare explicit paths for objects that are part of the CharacterNode hierarchical reading motion data into Shogun Post, the first CharacterNode is set by default as the priority node.

## Functional area

Data manipulators

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `setPriority` |

### Arguments

None

### Flags

None

## Return value

void 

> Macro (scroll-pagebreak)

## Examples

```plaintext
select Actor_1;
setPriority;
select lfoot;
// Selects the left foot bone on Actor_1
  
select -priority;
// Selects Actor_1 
  
select Actor_2;
setPriority;
select lfoot;
// Selects the left foot bone on Actor_2
```

# Additional information

## Related commands

- [select](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737508) -priority
- [setPrimary](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736466)