The forum is closed and this archive is read-only. To ask a question or start a discussion, use GitHub Discussions.

Go to GitHub Discussions
Help & QuestionsAug 6, 2026

Temperature-dependent glass assignment in surface.add() for polychromatic systems

by Sebastian

Hi, I'm trying to understand how temperature-dependent materials are intended to be used in Optiland. I noticed that the material API documentation (e.g. materials.material) mentions that refractive index calculations can accept a temperature parameter when calling: glass.n(wavelength, temperature=25) However, I have not found a way to specify a temperature when assigning a material to a surface. My use case is a polychromatic imaging system and I would like all glass refractive indices to be evaluated at 25°C. Is there currently a way to assign a material temperature when using lens.surfaces.add(). Thanks in advance for your help