On Jun 28, 2013, at 9:22 PM, "Dougherty, Matthew T" wrote:
I am trying to write some python scripts relating to volume viewer.
two things I need to have are:
1) the ability to figure out what dataset is active on the volume viewer. I will manually pick that with the mouse, my python sw will process the active model in volume viewer.
2) on the selected dataset I need to know what the min/max values are.
Hi Matt,
As you know, Tom Goddard is on vacation -- so these answers are for novelty purposes only. :-)
1) I'm pretty sure that VolumeViewer.volumedialog.active_volume() will return the active volume (can return None of course in some cases).
2) I think that calling the volume's matrix_value_statistics method will return an object whose .minimum and .maximum attributes are what you want. Maybe.
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
_______________________________________________