Just to set the expectations, I'm new to KLayout as well as Ruby scripting. In my job role I have been tasked to see if there is a possibility to run the Xsection add-on available within KLayout to achieve a step by step processing of the layout. In other words stopping the "cmos.xs" (https://github.com/klayoutmatthias/xsection/blob/master/docs/cmos.xs) after every step like deposition or etch or Litho to look at the process flow step by step.
In the language of code:
Is there a way to execute the "output" command one by one, controlled by a user input? The user input is expected to click a button, where the button(I'm envisioning) could be a QtDialog box awaiting the user to click "Next". From my self guided learning on Ruby and the code it seems difficult because the whole Xsection is an event and cannot have "pause and play" kind functions.
Please excuse, if my question is unclear or if it is a repeat question. I did try to search the forums but couldn't find any thing similar.