From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Apr 17 2003 - 12:38:35 CDT

Sergei's original message bounced, so I'm forwarding it manually...

  John

----- Forwarded message from owner-vmd-l_at_ks.uiuc.edu -----

Hi,

Here's how you can set the center of rotation to the geometrical center
of selection (use "measure center $sel weight mass" for the center of mass).

set sel [atomselect top "resid 23 25 57"]
set center [list [measure center $sel]]
foreach mol [molinfo list] {
   molinfo $mol set center $center
}

Sergei

-----Original Message-----
From: Lubos Vrbka [mailto:shnek_at_chemi.muni.cz]
Sent: Thursday, April 17, 2003 11:38 AM
To: vmd-l_at_ks.uiuc.edu
Subject: Re: centering seection on screen

thanks to all who gave me hints...

centering using "c" works fine... but still, moving centre of rotation to
the centre of mass of the selection (or geometrical centre) would be nice
feature...

regards,
lubos
_@_:

-
#################################################
Lubos Vrbka
National Centre for Biomolecular Research
Masaryk university, Brno, Czech Republic

shnek_at_chemi.muni.cz
http://www.chemi.muni.cz/~shnek
tel. +420 541 129 508
#################################################

----- End forwarded message -----

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349              
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078