# bones()

Returns a handle for every bone in the viewport. You do not have to remember the names.

Names are sorted A to Z. If the scene has no bones, the list is empty. If bone worlds are not ready yet, you get `SessionError`. Call this after a mesh is open.

### Signature
```python
api.bones() -> list
```

### Example
```python
for bone in api.bones():
    print(bone.name)
```