> For the complete documentation index, see [llms.txt](https://scenegroup.gitbook.io/cavalry/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scenegroup.gitbook.io/cavalry/nodes/utilities/asset-array.md).

# Asset Array

**Auto Index** - when checked the node will automatically output all indices.

**Index** - the index to be used from the **Assets** list.

**Assets** - drag an Assets or Assets (.svg/ .csv/ .png etc) into this attribute. A connection icon will appear. Clicking on the icon will pop up the list of assets. You can drag the items to reorder them.

{% hint style="success" %}
Example usage:

1. Drag 2 **.png** files from Finder/Explorer into the [Assets Window](/cavalry/user-interface/menus/window-menu/asset-window.md).
2. Right click on the [Group](/cavalry/nodes/shapes/group.md) that was created in import containing the .png files and choose **Create Array from Group**. This will create an Asset Array with 3 indices connected to each .png file.
3. Create a [Rectangle](/cavalry/nodes/shapes/basic-shape.md).
4. Open the **Fill** tab.
5. Right click on the **Shaders** attribute and select **Add Shader >** [**Image Shader**](/cavalry/nodes/effects/image-shader.md).
6. Connect the **Asset Array** to the **Image** slot on the **Image Shader**.
7. Select the **Rectangle** in the [Scene Window](/cavalry/user-interface/menus/window-menu/scene-window.md) and `alt + click` on the [Duplicator](/cavalry/nodes/shapes/duplicator.md) icon in the [Shelf](/cavalry/user-interface/menus/window-menu/shelf.md).

This will create a grid of 9 rectangles each with alternating images. If you wanted to randomise  this sequence you could add a [Random Behaviour](/cavalry/nodes/behaviours/random.md) with a **Minimum** of **0** and **Maximum** of **1** and connect it to the **Index** of the **Asset Array**.
{% endhint %}

{% hint style="info" %}
See the [Dynamic Rendering](/cavalry/user-interface/menus/window-menu/render-manager/dynamic-rendering.md) section for some examples of how this node can be put to good use.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://scenegroup.gitbook.io/cavalry/nodes/utilities/asset-array.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.
