I have a huge tissue ROI from simple tissue detection.
Inside the tissue are ROI with class, created by tiles to ROI function.
It looks like that: The round structures are ROI with class "islet":

Now I want to create tiles inside the Islets.
To do so, i can use the script
selectObjects {it.getPathClass() != null}
ROI become activated/yellow:

now I could do tile creation for further segmentation inside Islets.
But as soon as I want to train a classifier, it will not work, because everything inside Islet will be classified as "Islet". So all tiles become Islets.
The only chance to train a classifier is to set the class of the Islet-ROI to "none".
Is there a way to change the class automatically by a script?Another point:
If I select all Islet-ROI with the Script
selectObjects {it.getPathClass() != null}
All ROI are selected. BUT I can NOT change the class! It will gust not work.

If I do rightclick - the function will not appear in the menue.
If I use the buttons on the left:

nothing will happen!.
Only if i go via "Measure" > "Show Annotations measurements" and select all Islets in the table, then the rightclick works and the function appears in the menue:

I am happy I found a way. But that is really hard manual work in case of a lot of files. Not i can delete the class/change the class to "none".
Afterwards I have no means anymore to distinguish between the tissue annotation and the islets annotations. I need to do it manually.
I reach my final goal to create tiles within the islets and classify them.
But I am far away of automation.
Do you have some idea if it is possible with scripts?
Would make me really feel relieved!
Best
David