From: John Stone (johns_at_ks.uiuc.edu)
Date: Sun Apr 18 2004 - 19:24:40 CDT

Hi,
  These are both covered in the VMD User's guide in the section about
atom selections:
  http://www.ks.uiuc.edu/Research/vmd/current/ug/node176.html#12947

You want to do something like this:
  set sel [atomselect top "all"]
  $sel moveby {3 3 2}
  $sel writepdb mynew.pdb
  $sel delete

Dig into the User's Guide text about the atomselect command,
that's where a lot of the action is.

  John

On Thu, Apr 15, 2004 at 02:46:00PM +0800, li wrote:
> Hi,all:
> a simple question:
> how to move a molecule and write a new pdb file in VMD?
> say i want to move the center to (0,0,1) from (3, 3, 3).
> thanks in advance!!
> --
> USTC Alumni Email System
>
>

-- 
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