VMD-L Mailing List
From: Gianluca Interlandi (gianluca_at_u.washington.edu)
Date: Sun Sep 19 2010 - 20:42:36 CDT
- Next message: John Stone: "Re: vmd display water molecules error"
 - Previous message: John Stone: "Re: plugin for Abinit output files"
 - In reply to: John Stone: "Re: Mouse event listener"
 - Next in thread: Gianluca Interlandi: "Re: Mouse event listener"
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
 
Thanks. I realize I should have searched for callbacks instead of 
listeners. I will play around.
Gianluca
On Sun, 19 Sep 2010, John Stone wrote:
> Hi,
>  I'm not sure if you're looking for mouse position events only, or
> also various types of pick events, but I'd suggest having a look at
> the VMD Tcl callback demo script I've attached to this email for examples
> of how to catch callbacks.  See the VMD User's Guide for the list of
> available callbacks and their meaning.
>
> There are some other callbacks for special mouse events and
> spaceball 6DOF position data that you can capture as well, but
> I'm guessing you're mostly interested in the simple ones that are
> well documented in the User's Guide.
>
> Cheers,
>  John Stone
>  vmd_at_ks.uiuc.edu
>
> On Wed, Sep 15, 2010 at 02:11:41PM -0700, Gianluca Interlandi wrote:
>> Hi!
>>
>> I would like to write a tcl script which is executed by VMD every time the
>> user clicks on the Display window and rotates the molecule. Hence some sort
>> of mouse event listener. Is there a way to do this through TCL?
>>
>> Thanks,
>>
>>      Gianluca
>>
>> -----------------------------------------------------
>> Gianluca Interlandi, PhD gianluca_at_u.washington.edu
>>                      +1 (206) 685 4435
>>                      http://artemide.bioeng.washington.edu/
>>
>> Postdoc at the Department of Bioengineering
>> at the University of Washington, Seattle WA U.S.A.
>> -----------------------------------------------------
>
> -- 
> 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
>
-----------------------------------------------------
Gianluca Interlandi, PhD gianluca_at_u.washington.edu
                     +1 (206) 685 4435
                     http://artemide.bioeng.washington.edu/
Postdoc at the Department of Bioengineering
at the University of Washington, Seattle WA U.S.A.
-----------------------------------------------------
- Next message: John Stone: "Re: vmd display water molecules error"
 - Previous message: John Stone: "Re: plugin for Abinit output files"
 - In reply to: John Stone: "Re: Mouse event listener"
 - Next in thread: Gianluca Interlandi: "Re: Mouse event listener"
 - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
 



