Use Python blocks!
Something like that:
if (count_atoms nt) == 0
then cmd.delete("nt")
if cmd.count_atoms("nt") == 0: \
cmd.delete("nt")
Note the explicit use of "continuation" lines via backslashes. This ensures
that PyMOL hands over both lines to the Python interpret
50)-872-0834
. Fax:(650)-872-0273 Cell:(650)-346-1154
. mailto:war...@delsci.com
> -Original Message-
> From: pymol-users-ad...@lists.sourceforge.net
> [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of
> Sebastien Moretti
> Sent: Thursday, Septemb
Hello,
Is there a way to use test commands in pymol scripting language ?
Something like that:
if (count_atoms nt) == 0
then cmd.delete("nt")
Thanks
--
Sébastien Moretti
http://www.igs.cnrs-mrs.fr/
CNRS - IGS
31 chemin Joseph Aiguier
13402 Marseille cedex