# `GSGlyph objectInAxesAtIndex:`

*Instance Method*

The glyph-local axis at an index, or `nil` when the index is out of range.

## Declaration

```swift
func axis(at idx: UInt) -> GSAxis?
```

```objc
- (GSAxis *) objectInAxesAtIndex:(NSUInteger) idx;
```

```python
objectInAxesAtIndex_(idx: int) -> GSAxis
```

## Parameters

- `idx` — The index in [`GSGlyph.axes`](/Core/GlyphsCore/GSGlyph/axes).

## See Also

### Glyph Axes

- [`GSGlyph.axes`](/Core/GlyphsCore/GSGlyph/axes) — The glyph-local axes used by Smart Components.
- [`GSGlyph.countOfAxes`](/Core/GlyphsCore/GSGlyph/countOfAxes) — The number of glyph-local axes.
- [`GSGlyph insertObject:inAxesAtIndex:`](/Core/GlyphsCore/GSGlyph/insertObject:inAxesAtIndex:) — Inserts a glyph-local axis at an index.
- [`GSGlyph removeObjectFromAxesAtIndex:`](/Core/GlyphsCore/GSGlyph/removeObjectFromAxesAtIndex:) — Removes the glyph-local axis at an index.
- [`GSGlyph replaceObjectInAxesAtIndex:withObject:`](/Core/GlyphsCore/GSGlyph/replaceObjectInAxesAtIndex:withObject:) — Replaces the glyph-local axis at an index.
- [`GSGlyph.allAxes`](/Core/GlyphsCore/GSGlyph/allAxes) — The axes defining a complete design-space location for the glyph.
- [`GSGlyph countOfAllAxes`](/Core/GlyphsCore/GSGlyph/countOfAllAxes) — The total number of font axes and glyph-local axes.
- [`GSGlyph axesRanges:internMax:axes:masterId:`](/Core/GlyphsCore/GSGlyph/axesRanges:internMax:axes:masterId:) — Computes the internal coordinate range of each selected axis.

