[Chimera-users] Deleting a surface on command line, not just hiding it
pett at cgl.ucsf.edu
Thu Jan 12 13:50:35 PST 2017
There’s a horrible non-Python way to do it, and a not-so-horrible Python way to do it. The horrible non-Python way is whenever you need a surface you open a second copy of your trajectory (“open” command), change it to the right coordinate set (“coordset” command), show the surface and then close the second trajectory. Open it again when you need another surface, etc.
The Python way is to run this Python code whenever to need to close a surface only (it will close all surfaces):
from chimera import openModels, MSMSModel
You should put it in a file whose name ends in “.py” (e.g. closeSurfs.py) and then just use the open command to open/run it when you need it.
UCSF Computer Graphics Lab
> On Jan 11, 2017, at 10:54 AM, Rebecca Swett <Rebecca_Swett at vrtx.com> wrote:
> Hi all,
> I'm working on an animation, and I'd like to know if there's a way I can delete or close a calculated surface from the command line. For my purposes, I'd like to show the surface representation of the protein, remove it, then show a dynamics trajectory, and show the surface again at a separate point (while the trajectory is stopped). Currently, without being able to close the surface, it tries to recalculate the surface at each trajectory frame, which doesn't work for my purposes. Let me know if this is possible.
> This email message and any attachments are confidential and intended for use by the addressee(s) only. If you are not the intended recipient, please notify me immediately by replying to this message, and destroy all copies of this message and any attachments. Thank you.
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu
> Manage subscription: http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chimera-users