Changes between Version 6 and Version 7 of ChimeraAnimationState


Ignore:
Timestamp:
Jan 4, 2011, 1:49:12 PM (15 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChimeraAnimationState

    v6 v7  
    7171
    7272
     73=== Model Types ===
     74
     75Models types are Python classes.  They all subclass from chimera.Model, but Python does not keep track of what classes subclass from a base class.  The best you can do is to get a set of all the currently open model types.  Keep in mind that a Chimera extension can introduce additional model types, so the set is always a subset.
     76{{{
     77#!python
     78modelTypes = [x.__class__ for x in chimera.openModels.list(all=True)]
     79modelTypes = list(set(modelTypes))
     80for i, t in enumerate(modelTypes):
     81    modelTypes[i] = re.findall("_chimera[.](.*)[']", str(t))[0]
     82}}}
     83
     84
    7385=== Parameter Access Methods ===
    7486
     
    8193
    8294Some tips in the [http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/faq.html programming FAQ] are useful (esp, items 4, 5, 7-10).
    83 
    84 
    8595
    8696==== Attributes: To Copy or Not to Copy, that is the question! ====