---
title: "setTimeSample(at:time:value:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdlayer/settimesample(at:time:value:)-3ot1j"
---

# setTimeSample(at:time:value:)

Sets the time-sampled value for the attribute at the given path at the specified time, wrapping the typed value in a USDValue.

## Declaration

```swift
func setTimeSample<T>(at path: USDLayer.Path, time: USDLayer.TimeCode, value: T) where T : USDValueProtocol
```

## Parameters

- `path`: The attribute path.
- `time`: The time at which to author.
- `value`: The typed sample value.

## See Also

### Working with time samples

- [timeSample(at:time:)](usdkit/usdlayer/timesample(at:time:).md)
- [timeSamples(at:)](usdkit/usdlayer/timesamples(at:).md)
- [allTimeSamples](usdkit/usdlayer/alltimesamples.md)
- [setTimeSample(at:time:value:)](usdkit/usdlayer/settimesample(at:time:value:)-6t3qd.md)
- [eraseTimeSample(at:time:)](usdkit/usdlayer/erasetimesample(at:time:).md)
