[chimera-dev] Problem using: "openModels.add"

Lars Kunert lkunert at mpi-sb.mpg.de
Thu Dec 4 03:33:46 PST 2003


Hi!

I got a problem using openModel.add to add a model into a specified 
id/subid-slot.


Python 2.2.3 (#1, Oct 29 2003, 07:35:58) 
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> 
import chimera
>>> m=chimera.Molecule()
>>> chimera.openModels.add([m], baseId=0, subid=0 )

up till here it worked nicely...

>>> m=chimera.Molecule()
>>> chimera.openModels.add([m], baseId=0, subid=1 )
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in ?
    chimera.openModels.add([m], baseId=0, subid=1 )
  File "/usr/local/chimera/chimera-1.1872/share/chimera/__init__.py", line 
769, in add
    shareXform, hidden, skipViewAll)
error: unopen model

adding a second, third... molecule/model to a slot gives an error-message 
(see above)
- no new entry will show up in the model-viewer, but...

>>> m=chimera.Molecule()

the next created Model will be shown in the model-viewer without even 
being added.


It would be nice if you could tell me something about the 
shareXform-parameter of the add-command too.


Thanks a lot for your help,

Lars


More information about the Chimera-dev mailing list