Delete trace

Hi all,

Does anyone know how I can delete the current traces with python scripts? I need to run different simulations without “stopping”. I take a screenshot after each product has been processed but before processing the next product I need to delete/clear the traces. I do not want to use simu reset since I will lose of my variables data, I just want to clear traces if possible. Thank you.

Robot trace is stored in the UserGeometry container.
You can clear it like this:

component = getComponent()

Thanks @Este I tried that but did not work. I am new to Visual Components. I added the script here
and I am calling it from robot prg.


Any advice? Thank you.