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

Shelf buttons are interface objects that contain script commands. Tabs are groups of buttons or layers that may be used to organize the button into user-defined categories.

This command creates a shelf tab with the given name. It is used to build the button shelf when Shogun Post is launched (see *ScriptShelves.hsl* in the main *ShogunPost#.#* directory).

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `createShelfTab "tabName1" ["tabName..."]` |

### Arguments

> Macro (scroll-tablelayout)

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `tabName` |  |  | String representing the name of the tab to create. Quotes around the name are optional although good practice. |

### Flags

None

## Return value

void

## Examples

```plaintext
createShelfTab "fileOps"; 
// This script will create a tab called "fileOps".
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [createShelfButton](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739490)