# Sandbox.Animation.Clip.GetLocalTransform

```csharp
Transform GetLocalTransform(float cycle, int bone)
```

Sample one bone's transform, relative to its parent bone.

### Parameters

- `cycle` (`float`): Position through the clip, from 0 to 1.
- `bone` (`int`): Index of the bone in [Sandbox.Animation.Skeleton.Bones](/api/Sandbox.Animation.Skeleton/Bones).

### Returns

`Transform`

### Exceptions

- `System.ArgumentOutOfRangeException`: The cycle is not finite or outside 0 to 1, or the bone index is outside the clip's bone range.

Declared in [Sandbox.Animation.Clip](/api/Sandbox.Animation.Clip).
Assembly: `Sandbox.Engine`.
