VMD-L Mailing List
From: Miguel Caro (miguel.caro_at_aalto.fi)
Date: Tue Mar 27 2018 - 02:32:59 CDT
- Next message: Fotis Baltoumas: "Re: Regarding installation of DruGui"
- Previous message: Pratik Narain Srivastava: "Re: Regarding installation of DruGui"
- In reply to: Vermaas, Joshua: "Re: Using radial coloring method from user-defined center"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi Josh,
Many thanks, this is a very powerful approach.
Miguel
On 2018-03-26 21:59, Vermaas, Joshua wrote:
> Hi Miguel,
>
> My preferred method would be to abuse the "user" field, and color by user.
>
> set center [list 0 0 0]
> set sel [atomselect top "protein"]
> for { set f 0 } { $f < [molinfo top get numframes] } { incr f } {
> $sel frame $f
> set userlist [list ]
> foreach v [$sel get {x y z}] {
> lappend userlist [vecdist $v $center]
> }
> $sel set user $userlist
> }
>
> Basically, this approach works whenever the default VMD colorings do not do what you want them to, since you can specify the user field per-frame.
>
> -Josh
>
> On 03/26/2018 11:31 AM, Miguel Caro wrote:
>
> Hello,
>
> I would like to use the radial coloring method using as center a position chosen by me. By default, VMD uses the center of mass of the atoms. How could I use, e.g., the center of my box as the origin?
>
> Regards,
>
> Miguel
>
> --
> Dr. Miguel Caro
> Academy of Finland Postdoctoral Researcher
> Department of Electrical Engineering and Automation,
> and Department of Applied Physics
> Aalto University, Finland
> Personal email: mcaroba_at_gmail.com<mailto:mcaroba_at_gmail.com>
> Work: miguel.caro_at_aalto.fi<mailto:miguel.caro_at_aalto.fi>
> Websites: http://mcaroba.dyndns.org
>
-- *Dr. Miguel Caro* /Academy of Finland Postdoctoral Researcher/ Department of Electrical Engineering and Automation, and Department of Applied Physics Aalto University, Finland Personal email: *mcaroba_at_gmail.com* Work: *miguel.caro_at_aalto.fi* Websites: http://mcaroba.dyndns.org http://dospt.org
- Next message: Fotis Baltoumas: "Re: Regarding installation of DruGui"
- Previous message: Pratik Narain Srivastava: "Re: Regarding installation of DruGui"
- In reply to: Vermaas, Joshua: "Re: Using radial coloring method from user-defined center"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]