How to change the PSF display size from Zemax API?
Hello,
I am using the python API to generate and save FFT PSFs. I can change all the parameters using the python API (with the ModifySettings function) appart the display size. How can I do it? It is not listed in the documentation for the Zemax macro.
Page 1 / 1
@Pascal Gregoire,
If the MODIFYSETTINGS doesn’t have the setting which you’d like, it is likely that it hasn’t been implemented.
However, the settings of the FFT PSF have been fully implemented in the ZOSAPI. This means you don’t need to rely on MODIFYSETTINGS anymore.
Here is a Python example:
from ZOSAPI.Analysis.Settings import Psf
# Open a new FFT PSF analysis fftPsf = TheSystem.Analyses.New_FftPsf()
# Retrieve the settings fftPsfSettings = fftPsf.GetSettings().__implementation__