<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Pablo,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>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:</div><div class=""><br class=""></div><div class="">from chimera import dialogs</div><div class="">vdlg = dialogs.find(“volume viewer”)</div><div class=""><br class=""></div><div class="">Then, the following will return <i class="">strings</i> containing the voxel size and counter level respectively. You would have to apply float() to them to turn them into numbers…</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>voxel_size = vdlg.coordinates_panel.voxel_size.get()</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>contour_level = vdlg.thresholds_panel.threshold.get()</div><div class=""><br class=""></div><div class="">—Eric</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 27, 2017, at 11:11 AM, Pablo Solar Rodríguez <<a href="mailto:pablosolar.r@gmail.com" class="">pablosolar.r@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default"><div class="gmail_default"><font color="#444444" face="monospace, monospace" class="">Hello everyone!</font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class=""><br class=""></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class="">I feel you will get tired of me asking so many questions hehe </font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class=""><br class=""></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class="">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.</font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class=""><br class=""></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class="">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.</font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class=""><br class=""></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class="">Thank you in advance and, as usual, kind regards!</font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class=""><br class=""></font></div><div class="gmail_default"><font color="#444444" face="monospace, monospace" class="">Pablo.</font></div></div><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><p class=""><br class=""></p></div></div></div></div></div></div>
</div>
_______________________________________________<br class="">Chimera-dev mailing list<br class=""><a href="mailto:Chimera-dev@cgl.ucsf.edu" class="">Chimera-dev@cgl.ucsf.edu</a><br class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev<br class=""></div></blockquote></div><br class=""></div></body></html>