[chimera-dev] volume viewer/mouse

Eric Pettersen pett at cgl.ucsf.edu
Mon Jul 1 11:14:45 PDT 2013


On Jun 28, 2013, at 9:22 PM, "Dougherty, Matthew T" <matthewd at bcm.edu> 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
                        http://www.cgl.ucsf.edu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20130701/f393dc43/attachment.html>


More information about the Chimera-dev mailing list