[PyMOL] Question Iterate

2011-11-28 Thread Martin Hediger
In this example below (from Thomas), the method 'iterate' is used. The function saves every amino acid of a structure to a separate file. First of all, I'm not sure of how to understand the docs: iterate iterates over an expression within a temporary namespace for each atom. What does

Re: [PyMOL] Question Iterate

2011-11-28 Thread Tsjerk Wassenaar
Hi Martin, The temporary namespace for an atom means that variables like 'resn' can be used to refer to the attribute with that name on the atom instance. You are right that iterate is here used to iterate over a single atom. That does seem a bit odd :p But it seems to be a more straightforward