Dear pyMol users, I am trying to load a simple model using python into pymol using the following script. All works perfectly until i click for this new model to display its surface or mesh. The other thing is that in older versions 0.99rc the surface and mesh were correctly displayed, however this works no longer with 1.1 version Does anyone know how to fix the issue? Thanks. Petr Benes
from chempy.models import Indexed from chempy import Bond, Atom from whrandom import random from pymol import cmd model = Indexed() # create some atoms for a in range(1,11): at = Atom() at.name = "X%02d"%a at.coord = [random()*5,random()*5,random()*5] at.vdw = 2.0 model.atom.append(at) # now create some bonds for a in range(1,10): bd = Bond() bd.index = [a-1,a] # zero-based indices! model.bond.append(bd) # now load and label cmd.load_model(model,"example") cmd.label("example","name")