zPush(1)to ensure that the solves are set up correctly. If that working as expected, I would then try calling
zUpdate()explicitly after changing the aperture of the first one. While writing this message to you I decided to give it a try, and it worked. Here is a link to the screenshot video: https://youtu.be/5rB_XusNn5M (Note that I didn't call
zUpdate()in the screenshot video because it is called automatically in the APR mode, which is turned on in an interactive setting by setting
ln.apr = True). I hope that helps :smile:
zGetRefresh(). In the APR mode (as demoed in the video), PyZDDE automatically invokes these commands to make interactivity more easy. Currently, this feature is quite conservative as I am still experimenting with the new feature. You can read more about it here. I hope that helps. Please do let me know if something wasn't clear. Also, please feel free to let me know if you have any suggestions, feedback etc. on improving pyzdde. Thanks. Best regards.
ipzCaptureWindow()doesn't work with it is because the "Shaded model" layout window doesn't cannot export the image as a metafile (you can see that the option is grayed out in the window). I am not sure why Zemax doesn't allow exporting the window as metafile. Also, AFAIK unfortunately there are no DDE commands to ask Zemax to export a PNG/BMP version .... and there is another "unfortunately" (I'm sorry), Zemax has completely removed GetMetaFile DDE command from OpticStudio since version 14 ... so
ipzCaptureWindow()will not work at all :-( ... is there anyway that you could use
ipzCaptureWindowLQ? It does work well enough with OpticStudio (I mean the quality of output). Let me know.
ipzCaptureWindow()function internally calls Zmeax with the
GetMetaFileDDE dataitem. However, AFAIK Zemax has removed the
GetMetaFileDDE dataitem since Zemax 14 (please double check). Therefore,
ipzCaptureWindow()will not work in ZOS 15 or 15.5. I feel bad for it too since I use the
ipzCaptureWindow()function myself quite often (within the IPython notebook).