Skip to main content

Speos client APIs 2026 R1 SP03

SourceAmbientNaturalLight – Creating a natural light ambient source

Last update: 29.07.2026

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

naturalLight = SpeosSim.SourceAmbientNaturalLight.Create()
naturalLight.ZenithDirection.Set(GetRootPart().CoordinateSystems[0].Axes[1])
naturalLight.NorthDirection.Set(GetRootPart().CoordinateSystems[0].Axes[0])
naturalLight.NorthDirectionReverse = True

naturalLight.TimeZone = "OPTIS, France"
naturalLight.DateTime = DateTime(2009, 7, 14, 12, 0, 0)

Connect with Ansys