Frederic Marion-Poll December 2, 2019 at 3:59 pm
Is it possible to control the parameters saved in an xml file when closing a sequence? I am working on stacks of images and the user can create multiple ROIs which are saved when the sequence is closed. Is there a way to prevent these rois to be saved?
More specifically, my stack of images are named cam01-17.04.03_15.36.22.jpg (ie camera ID number -date-time.jpg) . Icy creates a file Cam-.._…xml in which ROIs are save automatically along with other parameters.
thank you in advance for your help,
FredStephane Dallongeville December 2, 2019 at 4:18 pm
You have a global setting in Icy preferences for that :
And you can access it by code with
but don’t forget to restore its prior state..
also that means that sequence closed from GUI won’t save their metadata too during that period (as there is no way to disable that feature on a Sequence basis) so use that safely.
Hope that helps 🙂
Frederic Marion-Poll December 2, 2019 at 4:56 pm
- This reply was modified 2 years, 8 months ago by Stephane Dallongeville.
Thank you Stephane!
PS Just thought about another way – trap the closing event of a sequence, clean the sequence from the ROIs and let the process continue normally? A plugin can be a sequence listener, no? or this has to be done at the level of the class containing the sequence?Stephane Dallongeville December 2, 2019 at 4:59 pm
You can do that indeed but still the XML file will be saved.
The forum ‘Development’ is closed to new topics and replies.