# Common Attributes (Behaviours)

{% tabs %}
{% tab title="Behaviour" %}
**Strength** - determine the strength of the Behaviour.

{% hint style="warning" %}
Many, but not all Behaviours include the Graph Widget below.
{% endhint %}

**Graph** - click the icon to pop up a Graph Widget. This can be used to shape the effect of a Behaviour. See [Graph Attribute](https://scenegroup.gitbook.io/cavalry/user-interface/widgets/graph-attribute).

<img src="https://1676825895-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LT2-S1m8aSPAI_Gg3Q1%2F-M-EsrcRFazdKrLyossp%2F-M-EsxmXdHh9iuHIkZwX%2FgraphAttribute.png?alt=media&#x26;token=0433fb2a-2c86-48aa-a93c-d1514cd71669" alt="" data-size="original">
{% endtab %}

{% tab title="Falloffs" %}
A list for adding and setting [Falloffs](https://scenegroup.gitbook.io/cavalry/nodes/utilities/falloff).

To add a Falloff either right click on the **Falloffs** row and select **Add Falloffs > Falloff** or [connect](https://scenegroup.gitbook.io/cavalry/getting-started/key-concepts/connections) an existing one.

**Visibility icon** (eye) - enable/ disable the Falloff.

**Layer Mode** - set the layer mode of each Falloff.

* **Normal (Add)** -
* **Min.** -
* **Max.** -
* **Minus** -
* **Multiply** -
* **Screen** -
* **Overlay** -

You can reorder the list by simply dragging and dropping.

{% hint style="info" %}
Each layer adds to the result of the layers below it so layer order is very important. For example, if you have 3 Falloffs:

* The first (bottom) Falloff has to be set to **Normal (Add)** otherwise there are no values for it to add/subtract from.
* The second Falloff will act on the bottom Falloff. e.g. if set to **Minus** it will subtract the values set by the bottom Falloff.
* The third Falloff will act on the result of the Falloffs below it.
  {% endhint %}

In the example below we have 3 Falloffs connected to a [Color Blend](https://scenegroup.gitbook.io/cavalry/nodes/behaviours/color-blend).

The **Color Blend** translates values of 0 as pink (the color on the left hand side of its gradient) and values of 1 as green (the color on the right hand side of its gradient).

![](https://1676825895-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LT2-S1m8aSPAI_Gg3Q1%2F-Lt0pOcHLKJ3B68I5G0y%2F-Lt0sTy1fpBQs28t21L4%2FColorBlend.png?alt=media\&token=1192b22c-28e6-4693-891a-630b9ad6edf3)

![](https://1676825895-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LT2-S1m8aSPAI_Gg3Q1%2F-Lt0pOcHLKJ3B68I5G0y%2F-Lt0q1OfNNH8RYL1AIat%2FFalloffUI.png?alt=media\&token=66a679f7-ef2a-4611-a025-d9f9eeffe522)

* **Falloff 1** is a **Circle** and its **Layer Mode** is set to **Normal (Add)**.&#x20;
* **Falloff 2** is a smaller **Circle** but its **Layer Mode** is set to **Minus**.
* **Falloff 3** is a **Rectangle** and its **Layer Mode** is set to **Multiply**.

![](https://1676825895-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LT2-S1m8aSPAI_Gg3Q1%2F-Lt0pOcHLKJ3B68I5G0y%2F-Lt0slmdTI5iiW5XawEJ%2FfalloffLayers.gif?alt=media\&token=02d25a31-3a8b-4815-936b-787cd135c64d)

* **Falloff 1** simply passes values of 1 to 0 (from its centre out towards its edge) which the Color Blend converts from green (1) to pink (0).
* **Falloff 2** subtracts its values from Falloff 1's. In the centre, both Falloffs have a value of 1 and so because $$1 - 1 = 0$$ the Color Blend gives us pink.
* **Falloff 3** uses its values to multiply the result of Falloff 2. Inside the rectangle the Falloff is passing values of 1 and outside 0 (we've used the Graph to create a hard falloff). $$Anything \times 0 = 0$$ so everything outside the rectangle is pink. Any values within the rectangle are multiplied by 1 so remain unchanged.
  {% endtab %}
  {% endtabs %}
