# Get Paint Opacity

## Get Paint Opacity

This **Node** has different versions based on whether `Fill` or `Stroke` is set in the **Attributes**.

{% tabs %}
{% tab title="Fill" %}

### Overview

![The Get Fill Paint Opacity Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-6726ac40899588be492f4919d8258454f36317bd%2Fgetfillpaintopacitynode20241.png?alt=media)

The **Get Fill Paint Opacity Node** returns the fill's `Opacity` -- meaning how opaque or transparent it appears -- of the selected **Object** at the specified layer indicated by the `Index`.

[**Scope**](https://docs.incari.com/incari-studio/overview#scopes): **Scene**, **Function**, **Prefab**.

### Attributes

![The Get Fill Paint Opacity Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-3fb8b4af73433467356d82d20a849b43f7964932%2Fgetfillpaintopacityatts.png?alt=media)

| Attribute | Type         | Description                                                                                                                                                                             |
| --------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Target`  | **Dropdown** | Can be either `Fill` or `Stroke`. In this case, `Fill` has been chosen.                                                                                                                 |
| `Index`   | **Int**      | Determines the layer of the fill content, if one is not provided in the **Input Socket**. It works in a top to bottom way, where 0 is the top layer and increasing layers are below it. |

### Inputs

| Input             | Type         | Description                                                            |
| ----------------- | ------------ | ---------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**.  |
| `Object ID`       | **ObjectID** | The ID of the **Object** that will have its fill's `Opacity` returned. |
| `Index`           | **Int**      | The index of the fill’s layer.                                         |

### Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Opacity`          | **Float** | The fill's opacity of the selected **Object** at the specified layer.                                                                  |
| {% endtab %}       |           |                                                                                                                                        |

{% tab title="Stroke" %}

### Overview

![The Get Stroke Paint Opacity Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-570d2bbf5f8896d44115411c3fe220a4b735af6e%2Fgetstrokepaintopacitynode20241.png?alt=media)

The **Get Stroke Paint Opacity Node** returns the stroke's `Opacity` -- meaning how opaque or transparent it appears -- of the selected **Object** at the specified layer indicated by the `Index`.

[**Scope**](https://docs.incari.com/incari-studio/overview#scopes): **Scene**, **Function**, **Prefab**.

### Attributes

![The Set Stroke Paint Opacity Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-67cca4e2bb892cf9662b1402ce226748e8607058%2Fgetstrokepaintopacityatts.png?alt=media)

| Attribute | Type         | Description                                                                                                                                                                             |
| --------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Target`  | **Dropdown** | Can be either `Fill` or `Stroke`. In this case, `Stroke` has been chosen.                                                                                                               |
| `Index`   | **Int**      | Determines the layer of the fill content, if one is not provided in the **Input Socket**. It works in a top to bottom way, where 0 is the top layer and increasing layers are below it. |

### Inputs

| Input             | Type         | Description                                                              |
| ----------------- | ------------ | ------------------------------------------------------------------------ |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**.    |
| `Object ID`       | **ObjectID** | The ID of the **Object** that will have its stroke's `Opacity` returned. |
| `Index`           | **Int**      | The index of the stroke's layer.                                         |

### Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Opacity`          | **Float** | The stroke's opacity of the selected **Object** at the specified layer.                                                                |
| {% endtab %}       |           |                                                                                                                                        |
| {% endtabs %}      |           |                                                                                                                                        |

## See Also

* [**Set Paint Opacity**](https://docs.incari.com/incari-studio/toolbox/incari/object2d/setpaintopacity)
