# `GSLayer objectInShapesAtIndexFast:`

*Instance Method*

Returns the shape at the given linear shape index without locking.

## Declaration

```swift
func shape(atIndexFast idx: UInt) -> GSShape?
```

```objc
- (GSShape *) objectInShapesAtIndexFast:(NSUInteger) idx;
```

```python
objectInShapesAtIndexFast_(idx: int) -> GSShape
```

## Discussion

Returns `nil` when the index is out of range.

## See Also

### Shapes

- [`GSLayer.shapes`](/Core/GlyphsCore/GSLayer/shapes) — An array of the shape objects defining the visual part of the layer.
- [`GSLayer setShapesFast:`](/Core/GlyphsCore/GSLayer/setShapesFast:) — Replaces the shapes without undo registration or KVO notifications.
- [`GSLayer setShapes:hints:`](/Core/GlyphsCore/GSLayer/setShapes:hints:) — Replaces the shapes and hints together.
- [`GSLayer getCopyOfContentFromLayer:doSelection:`](/Core/GlyphsCore/GSLayer/getCopyOfContentFromLayer:doSelection:) — Copies shapes, hints, anchors, and optionally selected nodes from another layer.
- [`GSLayer countOfShapes`](/Core/GlyphsCore/GSLayer/countOfShapes) — The number of shapes in the layer.
- [`GSLayer indexOfObjectInShapes:`](/Core/GlyphsCore/GSLayer/indexOfObjectInShapes:) — Returns the linear shape index of a shape.
- [`GSLayer objectInShapesAtIndex:`](/Core/GlyphsCore/GSLayer/objectInShapesAtIndex:) — Returns the shape at the given linear shape index.
- [`GSLayer clear`](/Core/GlyphsCore/GSLayer/clear) — Removes shapes, anchors, hints, and selection from the layer.

