# Layer Connections

Layer connections are a tool to share data and content between Layer variables in different layers. They present a more streamlined way to do that compared to [Global variables](/layers-and-layouts/layer-layouts/variables/global-variables.md).

In most cases you will be using Layer connections to pass textures from one layer to another, so let's demonstrate how this can be done.

## Example: Scroll texture

<div align="left"><figure><img src="/files/nL8ju92fZtMwNePdEKLX" alt=""><figcaption></figcaption></figure></div>

Create a:

1. **Video screen** in the Viewport
2. **Color grid** layer and
3. above it a **Scroll texture** layer

<figure><img src="/files/ZADlL2Exjk8I4RkOOhBd" alt=""><figcaption></figcaption></figure>

Then:

1. **drag** from the Video screen to Scroll texture layer.
2. **Alt + drag** from Color grid layer to Scroll texture layer

You've just created a layer connection. It copies the Texture variable from Color grid layer to Texture variable to Scroll texture.

<div align="left"><figure><img src="/files/WFmhhywhzjNv9fV8bNra" alt=""><figcaption></figcaption></figure></div>

Now open **Layer connections** window. You can find it in the **Window** top menu. In this window you can see a Table with 2 columns:

* **Source**: with 3 sub-columns you set the *source variable*
* **Destination**: with 3 sub-columns you set the *destination variable*

{% hint style="info" %}
**Good to know**: by Alt-dragging from one layer to another you create a layer connection between 2 layers that copies **all Texture** variables from the Source layer to all Texture variables of the Destination layer.
{% endhint %}

{% hint style="info" %}
**Good to know**: to create layer connections of **non-texture** variables, you need to use Layer connections.
{% endhint %}

<div align="left"><figure><img src="/files/otPlHkK3V77L3qkRsMTX" alt=""><figcaption></figcaption></figure></div>

If you want to temporarily disable a Layer connection just click on the eye icon in Layer connections window.

<div align="left"><figure><img src="/files/DZyiqXI6F5RLCVSs3RsQ" alt=""><figcaption></figcaption></figure></div>

If you want to delete a Layer connection you can do that in Layer connection window or by right clicking on one of the layers and selecting **Delete layer connections**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lightact.com/layers-and-layouts/layer-connections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
