<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br><br>I am trying to replicate/understand the imageID selection behaviour of the Thumbnail_Figure.py script.<br><br>Basically I want a script that is able to get the ImageIds either by:<br><br>1) A user selects multiple images in a dataset then runs the script,<br>2) A user selects multiple datasets then runs the script,<br><br>From this I want for 1) all the imageIDs of the selected images, and for 2) all the ImageIDs belonging to the datasets selected.<br>From what I have seen the Thumbnail_Figure.py does exactly what I want.<br><br>And it does this by having call paths for either Images or Datasets using the "Data_Type" variable.<br>However I don't understand a few things,<br><br>How does the script actually distinguish the Data_Type, as it always seems to be the default value when I run it from the command line, ie with debug output etc, so I can trace whats happening. Even when I give it the ID of an Image it still has Data_Type as a dataset. I'm guessing the command line execution is missing a step that's happening in the GUI/insight execution.<br><br>Secondly how come you set the <br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scripts.String("Data_Type", optional=False, grouping="1",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; description="The data you want to work with.", values=dataTypes, default="Dataset"),<br><br>But this is never shown in the GUI, how does it know to "hide" it, where is this being specified?<br>Thanks,<br><br>Jerome.<br>                                               </body>
</html>