Transfer annotations between projects

Hi all,
I need assistance on how I can transfer image annotations between different projects (polygons and circles only, not point tools).
I found something that transfer that within the same project:
https://groups.google.com/g/qupath-users/c/UvkNb54fYco/m/heaFghrFAQAJ

Thanks for help, sorry if it was already reported but after two hours of search I found nothing.

Hi @Fabio_Gualtieri ,

Have you had a look at these?

You might want to change the sample script a bit to filter out points, something like:

def annotations = getAnnotationObjects().findAll(it -> !it.getROI().isPoint())
1 Like

Hi @melvingelbard,
it works thanks!
The only thing I noticed is that is not keeping the name I gave to the annotations, is there a line I can edit in the script?