<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 20, 2016, at 10:03 AM, Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; 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; float: none; display: inline !important;" class="">For 3, your extension could be notified on every zoom and adjust the strut and ribbon sizes. You are right this will probably be to slow to be usable for a modest size protein because I believe it will recompute the ribbon at each zoom step. The strut size changes would probably be fast enough. Maybe the ribbon resize would be for a small protein. You’d have to try it to know.</span></div></blockquote><br class=""></div><div>You could start a short timer when a zoom is detected and if the timer goes off without any further zoom activity (which would restart the timer) <i class="">then</i> adjust the sizes. This is how the MOTION_START / MOTION_STOP triggers in chimera/__init__.py work. You could look in that file for an example of how you would code your just-after-zoom adjustment.</div><div><br class=""></div><div>—Eric</div><br class=""><div class=""><div class=""><div style="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 class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"></div></div></body></html>