From: Rajarshi G. <raj...@pr...> - 2003-02-13 02:19:20
|
Hi, This must be a very obvious question, but I cant seem to find it in the docs: how can I delete an object from a given pymol session from withina script. Also, is there any way to detect whether a certain script / object is already loaded, so that I dont reload it? Thanks ------------------------------------------------------------------- Rajarshi Guha GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- A hacker does for love what others would not do for money. |
From: Warren L. D. <wa...@su...> - 2003-02-13 04:54:05
|
On 12 Feb 2003, Rajarshi Guha wrote: > This must be a very obvious question, but I cant seem to find it in > the docs: how can I delete an object from a given pymol session from > withina script. Also, is there any way to detect whether a certain > script / object is already loaded, so that I dont reload it? 1. "delete object-name" for example: delete pept 2. if object-name not in cmd.get_names("objects"): cmd.load("filename") for example: if "pept" not in cmd.get_names("objects"): cmd.load("pept.pdb") |