Solved

ZOS-API - access to "Clear Vignetting" and "Set Vignetting" with Python

  • 5 January 2024
  • 2 replies
  • 45 views

  • Monochrome
  • 2 replies

Hi,

I’m trying to clear the vignetting and recalculate the vignetting by using the “Set Vignetting” and “Clear Vignetting” in the System explorer. I’m wondering if this accessible in zosapi?

Thanks, 

 

 

icon

Best answer by David.Nguyen 5 January 2024, 11:13

View original

2 replies

Additionally, 

I found that the fftMTF setting sample script doesn’t work.

# SettingsnewWin_Settings = newWin.GetSettings()newWin_Settings.MaximumFrequency = 50newWin_Settings.SampleSize = ZOSAPI.Analysis.SampleSizes.S_256x256

 

the max frequency and the sample size remains the same.

 

Userlevel 7
Badge +2

@YuY 

 

I believe those two features are accessed in the ZOS-API with:

TheSystem.SystemData.Fields.SetVignetting()
TheSystem.SystemData.Fields.ClearVignetting()

Regarding the FFT MTF settings. I would advise to start a new topic if the question does not fall within the context of the initial topic. That being said, I believe the issue is related to this:

Can you try changing this line of code:

newWin_Settings = newWin.GetSettings()

With this new one:

newWin_Settings = newWin.GetSettings().__implementation__

Notice the __implementation__ at the end. It should fix the issue. Let us know otherwise.

Take care,

 

David

Reply