Performing Polynomial Template Matching via Python scripting

Dear All.
I would like to perform polynomial template matching on many files (xyz or ase trajectories). I do not need the OVITO visualization, but I can see that PTM is available in OVITO. Is it possible to access the PTM in OVITO from a Python script or from the command line?
Thank you in advance.
Karsten.

Hi,

Yes! Please have a look at this detailed introduction in the OVITO Python reference (and especially the code example given under “Automation scripts”), which explains how to non-interactively carry out all actions that the graphical user interface provides: Introduction — OVITO Python Reference 3.9.2 documentation.

Thank you so much for your quick reply!
Best regards,
Karsten