Re: [PyMOL] test in pymol scripting language

2005-09-30 Thread Sebastien Moretti
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

RE: [PyMOL] test in pymol scripting language

2005-09-29 Thread Warren DeLano
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 interpreter