Skip to main content
Solved

STAR Rigid Body Motions Returning Zero

  • February 22, 2024
  • 2 replies
  • 99 views

tpotter6

Hello!

I have been running into an issue where I am trying to extract rigid body motion information from the STAR fit, but have only been getting zeros out. I am running a Python Interactive Extension using a notebook. Terminating the session and looking at the Fit Assessment, I can see the values, but have been unable to access them in Python.

This behavior looks to be repeated in this example:

I can see that though some of these angles have a negative sign, the only value displayed is 0.0. Is the data being truncated somewhere, or am I trying to pull data incorrectly? I have included a working example in the attachment.

Thank you,

Thad

Best answer by Matthias.Schlich

Hi Thad,

Thank you for your interest in STAR.

There is a command to retrieve the RBM information in the API, which needs to be used before accessing the angles and decenters:

surface.STARData.Deformations.RBMs.GetTransformValues()

After that, you should be able to retrieve the same values as in the UI with the API commands mentioned in the post that you linked.

I hope that this solves your issue.

Best regards

Matthias

2 replies

Matthias.Schlich
Zemax Staff
Forum|alt.badge.img

Hi Thad,

Thank you for your interest in STAR.

There is a command to retrieve the RBM information in the API, which needs to be used before accessing the angles and decenters:

surface.STARData.Deformations.RBMs.GetTransformValues()

After that, you should be able to retrieve the same values as in the UI with the API commands mentioned in the post that you linked.

I hope that this solves your issue.

Best regards

Matthias


tpotter6
  • Author
  • Single Emitter
  • February 23, 2024

Hi Matthias, thank you for the response!

That solved the issue. Must have missed that in the documentation and examples.

 

Best,

Thad