[chimerax-users] Accessing shapes created through a .BLD script

Tom Goddard goddard at sonic.net
Fri Feb 26 18:14:52 PST 2021


Hi Tanmoy,

  The BLD models do not support changing colors of individual spheres and cylinders.  And to get decent performance for 10000 shapes you need to use a fake molecule.  You can use a marker set which can have spheres and cylinders connecting spheres.  Each marker is an atom and each cylinder is a bond.  Each marker has an id number which is its residue number, so you can color marker 57 with "color :57 gold".  Markers can be read from an XML file or made from Python.

	https://www.rbvi.ucsf.edu/chimerax/docs/user/markers.html

  Tom

> On Feb 26, 2021, at 4:30 PM, Tanmoy Sanyal <tanmoy.7989 at gmail.com> wrote:
> 
> Hi,
> I have a bunch of shapes (spheres and cylinders) created through a .bld script. I'd like to load this script once, and then be able to change the colors of said shapes in successive operations. It is possible to set the colors directly in the .bld script, but I need to make an animation out of this. E.g: if my .bld script contains lines that draws shapes like so:
> .sphere 0 0 -1 5.0
> .cylinder 0 0 0 1 1 1 1.0
> 
> I want to be able to later have a bunch of scripts called 1.cxc, 2.cxc, 3.cxc, .... each of which change the color of the sphere and cylinder. This way, I can load these scripts in the per-frame mode, to create an animation out of the color changes. 
> 
> Alternatively, I tried doing this with just the shape command and without a .bld script, but I have over ~10000 shapes; the shape command interprets each as a different model, and my computer hangs. 
> 
> -----
> Thanks,
> Tanmoy
> 
> Tanmoy Sanyal
> Postdoctoral scholar, Sali lab <https://salilab.org/>,
> Department of Bioengineering and Therapeutic Sciences <https://bts.ucsf.edu/>,
> University of California San Francisco
> Phone:- (+1) 805-637-0375
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20210226/99f2aced/attachment.html>


More information about the ChimeraX-users mailing list