# `GSLayer indexOfPath:`

*Instance Method*

Returns the linear shape index of a path.

## Declaration

```objc
- (NSUInteger) indexOfPath:(GSShape *) shape;
```

```python
indexOfPath_(shape: GSShape) -> int
```

## Discussion

This is a compatibility alias for [`GSLayer indexOfObjectInShapes:`](/Core/GlyphsCore/GSLayer/indexOfObjectInShapes:).

## See Also

### Shape Proxies

- [`GSLayer.paths`](/Core/GlyphsCore/GSLayer/paths) — A proxy for iterating and accessing path shapes.
- [`GSLayer.components`](/Core/GlyphsCore/GSLayer/components) — A proxy for iterating and accessing component shapes.
- [`GSLayer.allComponents`](/Core/GlyphsCore/GSLayer/allComponents) — The component shapes in the layer.
- [`GSLayer.countOfPaths`](/Core/GlyphsCore/GSLayer/countOfPaths) — The number of path shapes in the layer.
- [`GSLayer.countOfComponents`](/Core/GlyphsCore/GSLayer/countOfComponents) — The number of component shapes in the layer.
- [`GSLayer.countOfImages`](/Core/GlyphsCore/GSLayer/countOfImages) — The number of image shapes in the layer.

