Sequencer | User Interface

Documentation Home Page ◇ HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Sequencer | User Interface


The sequencer user Interface is divided into 4 main areas.

  1. Menu bar

  2. Toolbar

  3. Editor

  4. Console Outputs

sequencer_home.png

Menu Bar

File Management

New python script (Ctrl+N)

Creates a new Python script.

Specify the script name with the extension .py and save the file.

Open... (Ctrl+O)

Opens an existing python script.

Open Recent

Allows opening a script amongst the 10 most recently opened files.

Save (Ctrl+S)/Save As...

Allows you to save a script. The default destination directory is the current HYPERSIM Project Content directory.

It's also possible to save the sequence in another folder anywhere in your file system.

Save All (Ctrl+Shift+S)

Allows you to save all the scripts that have been modified in the editor.

Exit

Exit and Close HySequencer window.

Edit

Shortcut

Description

Shortcut

Description

Ctrl + Z

Undo last action.

Ctrl + Y

Redo last undone action.

Ctrl + X

Cut selected text or item.

Ctrl + C

Copy selected text or item.

Ctrl + V

Paste from clipboard.

Ctrl + A

Select all.

View

Theme

Allows you to change the background theme of the editor. There are two modes: Light mode lightens the background, Dark mode darkens it.

By default, the editor uses the dark mode every time the application is opened.

Changing the theme has no impact on the execution of the script; this menu is used for aesthetic purposes only.

Toggle Developer Tools

Opens the built-in developer tools window, which provides advanced diagnostics (console logs, network and performance information) to help troubleshoot or support the application. Intended for advanced users and support; changing settings here may affect the interface but does not change your project or sequence files.

Run

Run or stop your script from the menu, or use the keyboard shortcuts F5 (Run) and Shift+F5 (Stop).

Environment

Lets you add your own environment variables when running a sequence. These variables are added to (and used alongside) HYPERSIM’s environment variables.

image-20260407-160353.png

To add multiple values to a single variable, press the Add Variable button.

External Python scripts can be imported into the code and detected by the auto-completion by adding the external folder path in the definition of the PYTHONPATH variable.

Limitation : The Sequencer currently uses the Python version embedded within HYPERSIM. For any advanced usage using community or private libraries, it is recommended to use an external tool and follow the Python API | Setup documentation.

Tool Bar

image-20260407-160638.png

Command

Description

Command

Description

New Python Script (Ctrl+N)

Create a new Python script file.

Open File (Ctrl+O)

Open an existing Python script.

Save (Ctrl+S)

Save the current script.

Save All (Ctrl+Shift+S)

Save all open scripts.

Run Script (F5)

Run the current script.

Stop Script (Shift+F5)

Stop the running script.

Record Commands

Start or stop capturing UI actions as Python code. The recorder logs supported actions performed in the HYPERSIM and ScopeView interfaces, then transcribes them into Python commands in the code editor.

Editor

Each tab displays a single script.

image-20260407-161337.png

Python Script

A script can be closed from the tab header by clicking on the cross.

If a file contains unsaved modifications, a asterisk '*' is displayed on the tab header next to the file name.

Python Sequence Edition

You can add commands and comments directly in this section.

The editor highlights Python errors and warnings to help you fix issues quickly.

The editor also supports additional keyboard shortcuts. Press F1 to open the command palette.

The editor appends the HYPERSIM API in the PYTHONPATH variable. Therefore, the editor is able to suggest imports and API functions with the "Code completion" feature, available via the Ctrl + Space shortcut.

image-20260407-162258.png

Record Commands Example

Here the amplitude has been modified as an example. Once the Apply button has been pressed, the sequencer records the command and transcribes it into the current sequence:

Note: Just like https://opal-rt.atlassian.net/wiki/spaces/HDI/pages/3541340 , the values given from the Python API use the default back-end unit. This explains how the 250 VrmsLL modification will be applied via the API with 204 VrmsLN.

image-20260407-163041.png

Console Output

This section displays the output of the script run from the sequencer.

image-20260407-163132.png