Skip to main content
Solved

LDE - using Tilt/Decenter Pickup this surface

  • Jan 16, 2024 4:33 PM UTC
  • 2 replies
  • 306 views

Ascho

Hi everyone,

I would like to change the surface properties with Python ZOS-API.

How can I change the follow parameter from “Explicit” to “ Reverse Thhis Surface”?

Thanks for help.

Best answer by David.Nguyen

@Ascho,

 

Try this:

# Surface number where properties are adjusted
surfaceNumber = 3

# Retrieve surface where properties are adjusted
mySurface = TheSystem.LDE.GetSurfaceAt(surfaceNumber)

# Get Tilt/Decenter properties of the surface
myTiltDecenterData = mySurface.TiltDecenterData

# Set After Surface property to pickup
myTiltDecenterData.SetAfterSurfaceModePickupThis()

These are the other functions and properties of the TiltDecenterData:

Hope this helps and take care,


David

View original

2 replies

David.Nguyen
Luminary
Forum|alt.badge.img+3
  • Luminary
  • Answer
  • Jan 17, 2024 9:14 AM UTC

@Ascho,

 

Try this:

# Surface number where properties are adjusted
surfaceNumber = 3

# Retrieve surface where properties are adjusted
mySurface = TheSystem.LDE.GetSurfaceAt(surfaceNumber)

# Get Tilt/Decenter properties of the surface
myTiltDecenterData = mySurface.TiltDecenterData

# Set After Surface property to pickup
myTiltDecenterData.SetAfterSurfaceModePickupThis()

These are the other functions and properties of the TiltDecenterData:

Hope this helps and take care,


David


Ascho
  • Author
  • Monochrome
  • Feb 15, 2024 11:09 AM UTC

Thank you so much.
It was very helpful for me.