# Shortcuts

There is a number of different shortcuts available in LightAct which should speed up your workflow.

## **General**

| Shortcut             | Description                             |
| -------------------- | --------------------------------------- |
| **Ctrl + N**         | New file                                |
| **Ctrl + O**         | Opens file                              |
| **Ctrl + S**         | Saves file                              |
| **Ctrl + Shift + S** | Saves file as...                        |
| **Ctrl + I**         | Imports asset                           |
| **Ctrl + Q**         | Quits program                           |
| **Ctrl + C**         | Copy                                    |
| **Ctrl + V**         | Paste                                   |
| **Ctrl + Z**         | Undo                                    |
| **Ctrl + Y**         | Redo                                    |
| **Ctrl + A**         | Selects All                             |
| **Ctrl + F4**        | Closes undocked hovered window or popup |

## **Viewport**

| Shortcut                     | Description                                                                                                                                                                      |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Mouse drag & number keys** | Holding one of 1-4 numbers while dragging a viewport object with a texture (for example, a video screen) onto the viewport will automatically select the appropriate resolution. |
| **NumPad 0**                 | Resets the camera                                                                                                                                                                |
| **F**                        | Focuses on the selected object                                                                                                                                                   |
| **Del**                      | Deletes the selected object                                                                                                                                                      |
| **T**                        | Translate gizmo mode                                                                                                                                                             |
| **R**                        | Rotate gizmo mode                                                                                                                                                                |
| **E**                        | Scale gizmo mode                                                                                                                                                                 |
| **L**                        | Shows object labels                                                                                                                                                              |
| **W**                        | Toggles World/Local coordinate space                                                                                                                                             |
| **Shift + drag**             | Duplicates object                                                                                                                                                                |
| **Shift + L**                | Locks or unlocks object                                                                                                                                                          |
| **Shift + F**                | Looks at source object of projector                                                                                                                                              |

## Assets

## Timelines

| Shortcut                       | Description                                  |
| ------------------------------ | -------------------------------------------- |
| **Shift + click Play button**  | Plays current and stops all other Timelines  |
| **Shift + click Pause button** | Pauses current and stops all other Timelines |
| **Shift + click Stop button**  | Stops all Timelines                          |
| **Double click on timeline**   | Creates a sequence                           |
| **Shift + mousewheel scroll**  | Scrolls Sequences section horizontally       |

## Timeline

| Shortcut                             | Description                                              |
| ------------------------------------ | -------------------------------------------------------- |
| **Double click on a sequence**       | Creates a blank layer                                    |
| **L + left click**                   | Creates a blank layer                                    |
| **M + left click**                   | Creates a marker                                         |
| **Ctrl + .**                         | Jumps to next marker                                     |
| **Ctrl + ,**                         | Jumps to previous marker                                 |
| **Shift + mousewheel scroll**        | Scrolls horizontally                                     |
| **Ctrl + mousewheel scroll**         | Moves playhead for 1 frame                               |
| **Ctrl + Shift + mousewheel scroll** | Moves playhead for 1 second                              |
| **Ctrl & +**                         | Increases selected section's Start TC time by one frame. |
| **Ctrl & -**                         | Decreases selected section's Start TC time by one frame. |

## Layers

| Shortcut               | Description                                                        |
| ---------------------- | ------------------------------------------------------------------ |
| **Del**                | Deletes selected layer                                             |
| **Shift + Del**        | Deletes selected layer and shifts track content to fill the gap    |
| **Shift + Ctrl + Del** | Deletes selected layer and shifts timeline content to fill the gap |

### **Inserting layer templates with shortcuts**

<div align="left"><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-957eaa4cb28254070e7c058b62f97f2937928172%2Flayer%20template.png?alt=media" alt=""></div>

Every layer template, which you can edit in *Template Editor* window, can have a shortcut key assigned. LightAct comes with a number of predefined layer templates all of which have a shortcut key assigned. These are as described below, but please note that you might have changed some of them:

| Shortcut            | Description                   |
| ------------------- | ----------------------------- |
| **V + right click** | Creates a video layer         |
| **I + right click** | Creates an image layer        |
| **N + right click** | Creates a Notch layer         |
| **D + right click** | Creates an NDI or Spout layer |
| **C + right click** | Creates a color grid layer    |
| **S + right click** | Creates a solid color layer   |

### **Creating variables in Layouts**

<div align="left"><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-fbe9d7ac5f2c12d70bd35ca05f7f04b60c31bb60%2Flayer%20variables%20with%20menu.png?alt=media" alt=""></div>

You can create *layer* or *global variables* by clicking on the **plus icon** in a particular group and selecting the type of variable you want to create. However, you can also hold one of the shortcuts below while clicking the plus icon and the variable of the corresponding type will be automatically created.

| Shortcut | Description                      |
| -------- | -------------------------------- |
| **F**    | Creates a float variable         |
| **I**    | Creates an integer variable      |
| **B**    | Creates a boolean variable       |
| **S**    | Creates a string (text) variable |
| **c**    | Creates a color variable         |
| **t**    | Creates a texture variable       |
| **2**    | Creates a vec2 variable          |
| **3**    | Creates an vec3 variable         |
| **r**    | Creates a resolution variable    |
| **1**    | Creates a canvas variable        |
| **o**    | Creates an object variable       |
| **d**    | Creates a device variable        |

## **Nodes**

| Shortcut                                                                                                                                                           | Description                                                                                                                                                                                                      |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Ctrl + X**                                                                                                                                                       | Cuts node                                                                                                                                                                                                        |
| **Q**                                                                                                                                                              | Straightens connections between selected nodes                                                                                                                                                                   |
| **↑, →, ↓, ←**                                                                                                                                                     | <p>Moves selected node 1 step toward the chosen direction<br><br>Moves the selected point 1 step toward the chosen direction in the Setup Window of a node such as Texture Mask node and other similar ones.</p> |
| <p><strong>Ctrl +↑,</strong></p><p><strong>Ctrl + →,</strong></p><p><strong>Ctrl +↓,</strong></p><p><strong>Ctrl + ←</strong></p>                                  | Moves the selected point 10 steps toward the chosen direction in the Setup Window of a node such as Texture Mask node and other similar ones.                                                                    |
| <p><strong>Ctrl + Shift +↑,</strong></p><p><strong>Ctrl + Shift + →,</strong></p><p><strong>Ctrl + Shift + ↓,</strong></p><p><strong>Ctrl + Shift + ←</strong></p> | Moves the selected point 100 steps toward the chosen direction in the Setup Window of a node such as Texture Mask node and other similar ones.                                                                   |
| <p><strong>Shift +↑,</strong><br><strong>Shift + →,</strong><br><strong>Shift + ↓,</strong><br><strong>Shift + ←</strong></p>                                      | Selects the neighboring point in the Setup Window of a node such as Texture Mask node and other similar ones.                                                                                                    |

## **Curve Editor**

| Shortcut         | Description            |
| ---------------- | ---------------------- |
| **Double click** | Adds point             |
| **Del**          | Removes selected point |

## Fixture editor

In *Custom* mode, you can **select** or **deselect** Fixture pixels.

<table><thead><tr><th>Shortcut</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td><strong>Double click</strong></td><td>Adds a pixel</td><td></td></tr><tr><td><strong>↑↓</strong></td><td>Moves the pixel by 1 unit</td><td></td></tr><tr><td><strong>Ctrl + ↑↓</strong></td><td>Moves the pixel by 10 unit</td><td></td></tr><tr><td><strong>Shift + ↑↓</strong></td><td>Moves the pixel by 100 unit</td><td></td></tr><tr><td><strong>Del</strong></td><td>Deletes the pixel</td><td></td></tr><tr><td><strong>ESC</strong></td><td>Stops the connecting process</td><td></td></tr></tbody></table>

## **Video Output**

| Shortcut                   | Description                                                                                 |
| -------------------------- | ------------------------------------------------------------------------------------------- |
| **Ctrl + T**               | Toggles *Always on top* flag of an Output window (it needs to have focus for this to work). |
| **Alt + Ctrl + Shift + Q** | Closes Output window (it needs to have focus for this to work)                              |

| Shortcut                                            | Description                                                                                                                                  |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| **Drag to empty space on track**                    | Creates layer on the track                                                                                                                   |
| **Shift + Drag to empty space on track**            | Creates layer on the track and shifts all affected layers on the track to the right                                                          |
| **Ctrl +** **Shift + Drag to empty space on track** | Creates layer on the track and shifts all affected layers on the sequence to the right                                                       |
| **Drag to existing layer on track**                 | Finds all variables of the same type and updates them to reference the dragged object or asset                                               |
| **Shift + Drag to existing layer on track**         | Replaces the layer we dragged to with a new layer and adjusts the duration of the layer and shifts the layers on the right side of the track |
| **Ctrl + Shift + Drag to existing layer on track**  | Replaces the layer we dragged to with a new layer and adjusts the position of all layers on the right side of the sequence                   |
