[chimera-dev] Get values from other chimera dialogs
Eric Pettersen
pett at cgl.ucsf.edu
Thu Apr 27 13:17:10 PDT 2017
Hi Pablo,
I am not the expert on the volume viewer or volumes in general — our expert is on vacation until the end of next week — but here’s what I’ve got. First, this will find the Volume Viewer dialog instance for you:
from chimera import dialogs
vdlg = dialogs.find(“volume viewer”)
Then, the following will return strings containing the voxel size and counter level respectively. You would have to apply float() to them to turn them into numbers…
voxel_size = vdlg.coordinates_panel.voxel_size.get()
contour_level = vdlg.thresholds_panel.threshold.get()
—Eric
Eric Pettersen
UCSF Computer Graphics Lab
> On Apr 27, 2017, at 11:11 AM, Pablo Solar Rodríguez <pablosolar.r at gmail.com> wrote:
>
> Hello everyone!
>
> I feel you will get tired of me asking so many questions hehe
>
> Anyway, I continue developing my plugin and I'd like to know if there's any way to get values from other chimera dialogs although they are not open.
>
> For example, when my map is loaded I need the values, from the Volume Viewer, of the voxel size (in Coordinates panel) and the cutoff, but I didn't find how to get them and I really don't know if this is possible or not.
>
> Thank you in advance and, as usual, kind regards!
>
> Pablo.
>
>
> _______________________________________________
> Chimera-dev mailing list
> Chimera-dev at cgl.ucsf.edu
> http://www.rbvi.ucsf.edu/mailman/listinfo/chimera-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-dev/attachments/20170427/1c1b1dcc/attachment.html>
More information about the Chimera-dev
mailing list