# `GSLayer.selNode`

*Instance Property*

The selected node when exactly one node is selected.

## Declaration

```swift
unowned(unsafe) var selectedNode: GSNode? { get }
```

```objc
@property (nonatomic, unsafe_unretained, readonly) GSNode * selNode;
```

```python
selNode() -> GSNode
```

## Discussion

Returns `nil` when the selection is empty, contains multiple objects, or contains a non-node object.

## See Also

### Nodes

- [`GSLayer.allNodes`](/Core/GlyphsCore/GSLayer/allNodes) — All nodes from all path shapes in linear shape order.
- [`GSLayer allNodesCount`](/Core/GlyphsCore/GSLayer/allNodesCount) — The number of nodes in all path shapes.
- [`GSLayer nodeAtIndexPath:`](/Core/GlyphsCore/GSLayer/nodeAtIndexPath:) — Returns the node at an index path.
- [`GSLayer indexPathOfNode:`](/Core/GlyphsCore/GSLayer/indexPathOfNode:) — Returns the index path of a node in this layer.
- [`GSLayer sortedSelectedNodes`](/Core/GlyphsCore/GSLayer/sortedSelectedNodes) — The selected nodes in path order.

