VMD-L Mailing List
From: Tim Lo (timlo_at_connect.hku.hk)
Date: Sat Aug 29 2015 - 01:58:43 CDT
- Next message: John Stone: "Re: How to set a common camera state"
- Previous message: Eric Smoll: "Set "center" in script"
- In reply to: Eric Smoll: "Set "center" in script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi Eric,
Do you mean moving the center of the whole system to the origin? In this
case, you can use the following Tcl script:
set A [atomselect top all]
set minus_com [vecsub {0.0 0.0 0.0} [measure center $A]]
$A moveby $minus_com
Tim
Research Associate
The University of Hong Kong
On 29/8/2015 14:10, Eric Smoll wrote:
> Hello VMD users,
>
> Is there a way to set center in a script? Normally, File -> "Log Tcl
> Commands to Console" is useful but using "Mouse" -> "Center" just
> returns information on the selected atom. As far as I understand,
> translate and rotate operations are applied from this reference.
>
> Best,
> Eric
- Next message: John Stone: "Re: How to set a common camera state"
- Previous message: Eric Smoll: "Set "center" in script"
- In reply to: Eric Smoll: "Set "center" in script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]