# sm.pipeGraph.getContainerPath

Returns a table of shapes on the path between the requesting shape and target container shape.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.pipeGraph.getContainerPath( requester, target, direction? )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.pipeGraph.md#getcontainerpath)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `requester` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The requesting shape. |
| `target` | [Shape](../Game-Script-Environment/Userdata/Shape.md) | The target container shape. |
| `direction` *(optional)* | integer | The direction to fetch in. Defaults to [sm.pipeGraph.direction.any](../Game-Script-Environment/Static-Functions/sm.pipeGraph.md#direction) (Optional) |

**Returns:**

| Name | Type | Description |
| --- | --- | --- |
| `shapes` | table | The shapes on the path between requesting shape to target. Requester not included in table. |
