Thanks again. Seems to work fine on OMERO 5 as well. There's just one small error in the code that causes the user dialog to come up wrong in Insight while it looks fine in OMERO.Web:
Instead of:
scripts.String(PARAM_DATATYPE, optional=False, grouping="1.1",
description="The data you want to work with.", values=dataTypes,
default="Image"),
scripts.List(PARAM_IDS, optional=True, grouping="1.2",
description="List of Dataset IDs or Image IDs").ofType(rlong(0)),
scripts.Bool(PARAM_ALL_IMAGES, grouping="1.3",
description="Process all images (ignore the ID parameters)",
default=False),
It should be:
scripts.String(PARAM_DATATYPE, optional=False, grouping="1",
description="The data you want to work with.", values=dataTypes,
default="Image"),
scripts.List(PARAM_IDS, optional=True, grouping="1.1",
description="List of Dataset IDs or Image IDs").ofType(rlong(0)),
scripts.Bool(PARAM_ALL_IMAGES, grouping="1.2",
description="Process all images (ignore the ID parameters)",
default=False),
I hope others will have use for this script as well. Thanks to Pierre and Will!!
- Damir