# Lock

Source: https://help.malighting.com/grandMA3/2.3/HTML/keyword_lock.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
To enter the Lock keyword in the command line, use one of the options:

- Type **Lock**
- Type the shortcut **Loc**

## Description

The Lock keyword is a function keyword that locks objects. 

Objects that are locked are indicated by a padlock. 

For more information on locks and their types see [Lock and Unlock Pool Objects](/grandma3/2-3/wvm_pool_lock_unlock/).

## Syntax

Lock \[Object] \["Object\_Name" or Object\_Number]

## Examples

- To lock macro 1, type:

|                                                                    |                                  |
| ------------------------------------------------------------------ | -------------------------------- |
| ![](/img/grandma3/2-3/icon_commandline-input_logo_v2-0-59d23e.png) | User name\[Fixture]>Lock Macro 1 |

To unlock objects see the [Unlock Keyword](/grandma3/2-3/keyword_unlock/).

 

- To lock the second color preset 2, type:

|                                                                    |                                     |
| ------------------------------------------------------------------ | ----------------------------------- |
| ![](/img/grandma3/2-3/icon_commandline-input_logo_v2-0-59d23e.png) | User name\[Fixture]>Lock Preset 4.2 |

 

- To lock sequence 3, type:

|                                                                    |                                     |
| ------------------------------------------------------------------ | ----------------------------------- |
| ![](/img/grandma3/2-3/icon_commandline-input_logo_v2-0-59d23e.png) | User name\[Fixture]>Lock Sequence 3 |