Using ZOS-API constants#
All api constants are available through zospy.constants.
Note that these are only available after initiating the ZOS-API connection, i.e. an instance of
zospy.ZOS has been created (see Connecting to OpticStudio).
For example, the Editors.LDE.SurfaceType constant is available as zospy.constants.Editors.LDE.SurfaceType:
import zospy as zp
zos = zp.ZOS() # <-- Constants are only available after creating a ZOS instance
print(zp.constants.Editors.LDE.SurfaceType.Standard)