[Chimera-users] programmatic representation

Randy Heiland heiland at indiana.edu
Mon Feb 12 12:28:22 PST 2007


I'd like to be able to set the representation (wire, stick, bs, cpk) of
a model programmatically, in this case, from a plugin.  I was trying the
following, but the newly displayed model would always be displayed in
wire:

      self.model = ReadSDF.readSDF(tmpfile.name)
      chimera.openModels.add(self.model)

      #Midas.represent('stick', self.model)
      Midas.represent('cpk', self.model)

Suggestions?
thanks, Randy




More information about the Chimera-users mailing list