# Layers

Depence comes with a hierarchical layer structure, which can have layers being children of other layers. Especially for bigger projects, layers are required to temporarily hide or lock parts of your scene.

## Layer Management

### Add new Layer

Click on <mark style="color:blue;">**Add new Layer**</mark> button to create a new layer. The <mark style="color:blue;">**Edit Layer**</mark> window opens:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/VidhYEC3EUP7ReqQuEE2/image.png" alt=""><figcaption></figcaption></figure>

To select the layer color you want, maintain a left-click and in the color rectangle and select your color:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/5nH8euslohWl84AnFdEB/image.png" alt=""><figcaption><p>Layer color selection</p></figcaption></figure>

### **Display current Object Layer**

To find the layer associated to an object, select your object, right-click and choose <mark style="color:blue;">**Move to Layer**</mark>, the current selected layer is where the object is linked:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/5TG14ucQvja3ZXlHNlAK/image.png" alt=""><figcaption><p>Layer of the current selected object is "Sharpy"</p></figcaption></figure>

{% hint style="warning" %}
Multi-selection is not supported to display the layer
{% endhint %}

### **Move Object to Layer**&#x20;

To move an object to a different layer, select the object(s), right-click and choose <mark style="color:blue;">**Move to Layer**</mark>:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/OF76tBCoPe5s56XkCKi6/752025609.png" alt=""><figcaption><p>Right-click > Move to Layer</p></figcaption></figure>

A second way is to right-click on the target layer and choose <mark style="color:blue;">**Move selected**</mark>, which will put all selected objects into this layer.

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/thFhb4yHRFYWKUNlZXkG/image.png" alt=""><figcaption><p>Move selected from Layer</p></figcaption></figure>

### Delete selected Layer

Select the layer to delete, and click on <mark style="color:blue;">**Delete selected Layer**</mark>:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/N9pRW4t8cGQZ6c96QCLq/image.png" alt=""><figcaption><p>Delete selected Layer</p></figcaption></figure>

## Layer Parameters

Each layer has 5 parameters:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/MSvsrhyGkRWNd3AUNB0Y/image.png" alt=""><figcaption></figcaption></figure>

* **Color:** Layer color *(defined at creation)*
* **Name:** Layer name *(defined at creation)*
* **A - Active:** Current active layer
* **V - Visible:** Visibility of the layer *(children layer inherit from it)*
* **S - Solo:** Only Solo layer is visible *(children layer inherit from it)*
* **L - Lock:** Allow or lock modification of the layer *(children layer inherit from it)*

### Color & Name

Layer Color & Name can be changed at any time by double clicking on the layer to be updated. The <mark style="color:blue;">**Edit Layer**</mark> window will appear *(see* [*Add new Layer*](#add-new-layer)*)*.

The layer color can be helpful to organize e.g. fixture or object types.&#x20;

The CAD view will also draw fixtures in layer color:

![Layer color are visible in CAD View](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/SJODdXYtI50NWIwGNpzl/37847050.jpg)

### Active

Once you add a new object to your scene it will be automatically linked to the currently active layer:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/6wAW6dsoKlOOmp7CUELh/image.png" alt=""><figcaption><p>Layer Truss is the current active layer.</p></figcaption></figure>

To change the current active layer, click in the A column of the layer you want.

### Visible

The visible parameter can be used to quickly hide layer(s) we don't need:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/6OTKLTglzFglZ96Vc7UX/image.png" alt=""><figcaption><p>All layer except "Fixtures" are hidden</p></figcaption></figure>

### **Solo**

The Solo parameter can be used to "Solo" a layer.

It is useful to restrict the visibility of all layers except the solo one:

<figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/QIMqHNoS5iothca3Kw68/image.png" alt=""><figcaption><p>Only layer "Fixtures" is visible</p></figcaption></figure>

### **Lock**

When a layer is locked it can not be selected or either modified.

<div><figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/ZQLKUkpcJSfBPTA3tprJ/image.png" alt=""><figcaption><p>Selection with lock active on specific layer</p></figcaption></figure> <figure><img src="https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/xFmIf26jki8pquiRTvuJ/image.png" alt=""><figcaption><p>As result, the locked layer are not selected</p></figcaption></figure></div>
