[Chimera-users] Chimera API

Tom Goddard goddard at cgl.ucsf.edu
Tue May 26 10:57:03 PDT 2009

Hi Chris,

  There is not much documentation for the Chimera Python API.  For the 
roll command the code is in the Midas module as are many other 
commands.  Look at the Python file in your distribution


and search for "def roll" (around line 1978) to see the code that 
implements this.  From Idle use

    import Midas

to roll about the y-axis.  Some further examples of Chimera Python code 
are on the new Python scripts web page:



christopher lau wrote:
> Hi,
> Does anyone have any documentation on the chimera API? I want to 
> familiarize myself more with the commands that can be used in the 
> Chimera IDLE and python scripts.  I have looked at the Example 
> tutorials 
> (http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/), but 
> aside from the commands used in the tutorial I do not know how to 
> perform other actions on the molecule.  One of the commands I would 
> like to run is to rotate the molecule ("roll", in the command line) 
> using IDLE commands.
> Thanks for your help,
> Chris
> ------------------------------------------------------------------------
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users

More information about the Chimera-users mailing list