[chimera-dev] Help with chimera extension for 3D printing

Eric Pettersen pett at cgl.ucsf.edu
Wed Jul 20 10:33:57 PDT 2016


> On Jul 20, 2016, at 10:03 AM, Tom Goddard <goddard at sonic.net> wrote:
> 
> 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.

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) then 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.

—Eric

	Eric Pettersen
	UCSF Computer Graphics Lab



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


More information about the Chimera-dev mailing list