Re: [PyMOL] building centroids for residues

2007-04-21 Thread DeLano Scientific
Andreas, Thank you for posting that script. One of the new features in the PyMOL 1.0 betas is the pseudoatom command which has a similar behavior. pseudoatom object-name, selection show spheres, object-name In terms of finding the center of mass, try: center selection print cmd.get_position()

Re: [PyMOL] Showing periodic images

2007-04-21 Thread Tsjerk Wassenaar
Dear Felix, One of the easiest ways to determine whether a point is inside a triclinic box is by matrix multiplying the coordinates with the inverse of the box matrix. Then, every point which has coordinates within [0,1] will be inside the box. Furthermore, every point can be mapped to the tricli