def ray(self, cleanup=0):
     if not cleanup:
         self.cmd.set("suspend_updates", 1, quiet=1)
         self.cmd.disable()
         self.cmd.delete("ray")
         self.cmd.load("$PYMOL_DATA/demo/il2.pdb", "ray")
         self.cmd.remove("(ray and hydro)")
         self.cmd.hide("everything", "ray")
         self.cmd.show("spheres", "ray")
         self.cmd.orient("ray")
         self.cmd.turn("x", 90)
         util.ray_shadows('heavy', _self=self.cmd)
         self.cmd.set("suspend_updates", 0, quiet=1)
         self.cmd.refresh()
         self.cmd.do("ray")
     else:
         self.cmd.delete("ray")
Ejemplo n.º 2
0
Archivo: demo.py Proyecto: Almad/pymol
 def ray(self,cleanup=0):
     if not cleanup:
         self.cmd.set("suspend_updates",1,quiet=1)
         self.cmd.disable()
         self.cmd.delete("ray")
         self.cmd.load("$PYMOL_DATA/demo/il2.pdb","ray")
         self.cmd.remove("(ray and hydro)")
         self.cmd.hide("lines","ray")
         self.cmd.show("spheres","ray")
         self.cmd.orient("ray")
         self.cmd.turn("x",90)
         util.ray_shadows('heavy',_self=self.cmd)
         self.cmd.set("suspend_updates",0,quiet=1)
         self.cmd.refresh()
         self.cmd.do("ray")
     else:
         self.cmd.delete("ray")
Ejemplo n.º 3
0
 def ray(self,cleanup=0):
     if not cleanup:
         cmd.set("suspend_updates",1,quiet=1)
         cmd.disable()
         cmd.delete("ray")
         cmd.set("sphere_scale",1.0)
         cmd.load("$PYMOL_DATA/demo/il2.pdb","ray")
         cmd.remove("(ray and hydro)")
         cmd.hide("lines","ray")
         cmd.show("spheres","ray")
         cmd.orient("ray")
         cmd.turn("x",90)
         util.ray_shadows('heavy')
         cmd.mstop()
         cmd.rock(0)
         cmd.set("suspend_updates",0,quiet=1)
         cmd.refresh()
         cmd.do("ray")
     else:
         cmd.delete("ray")
Ejemplo n.º 4
0
 def ray(self,cleanup=0):
     if not cleanup:
         cmd.set("suspend_updates",1,quiet=1)
         cmd.disable()
         cmd.delete("ray")
         cmd.set("sphere_mode",5)
         cmd.set("sphere_scale",1.0)
         cmd.load("$PYMOL_DATA/demo/il2.pdb","ray")
         cmd.remove("(ray and hydro)")
         cmd.hide("lines","ray")
         cmd.show("spheres","ray")
         cmd.orient("ray")
         cmd.turn("x",90)
         util.ray_shadows('heavy')
         cmd.mstop()
         cmd.rock(0)
         cmd.set("suspend_updates",0,quiet=1)
         cmd.refresh()
         cmd.do("ray")
     else:
         cmd.delete("ray")