> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SourceAmbientUniform – Creating an ambient source uniform

The following script sample shows you an example on how to create a Uniform Ambient Source.

```python theme={null}
uniformSource = SpeosSim.SourceAmbientUniform.Create()
uniformSource.ZenithDirection.Set(GetRootPart().CoordinateSystems[0].Axes[1])
uniformSource.SpectrumType = SpeosSim.SourceAmbientUniform.EnumSpectrumType.LibrarySpectrum
uniformSource.SpectrumValueLibrary = ".\\SPEOS input files\\Sky.spectrum"
```
