[ZOS-API - MATLAB] open files and raytrace

  • 8 December 2020
  • 1 reply
  • 135 views

Hello!


I tried to open .zmx files and raytrace them, but I got an error code:


Error: Dot indexing is not supported for variables of this type.

        normUnPolData = rayTracer.CreateNormUnpol(nRays,realRayType,nSurf); 


 


I think that when I open another .zmx file, the 'Open Batch RayTrace' code doesn't seem to be updated.


Could you tell me how can I solve this problem?


Thanks.


1 reply

Userlevel 7
Badge +2

Hi Kim,


Could you share an example with us? I don't see the rest of your code but in the ZOS-API syntax help, the raytracing tool is often refered to as rayTrace, and not rayTracer. Is it possible you made a typo?


The correct line of code should then be:


normUnPolData = rayTrace.CreateNormUnpol(nRays,realRayType,nSurf); 

Take care,


David

Reply