right! Looks like you've got it. Note that bindings are not exclusive, so
you could for example use:

bind "ALT-LEFT" "if(_MODE==2){ print 'atom=_ATOM' }"
bind "ALT-LEFT" "if(_MODE==2 and _OBJECT){ print 'object=_OBJECT' }"

You can unbind these selectively (using the same action) or all at once.

On Tue, Jan 24, 2012 at 5:15 AM, Alexander Rose <alexander.r...@weirdbyte.de
> wrote:

> Hi Bob,
>
> thank you so much, this is perfect! - and I see you're working on _OBJECT
> too, which is even more great.
>
> bind "ALT-LEFT" "if(_MODE==2){ zoomTo 0.6 (_ATOM); }";
>
>
> Best
> Alexnader
>
>
> ----- Ursprüngliche Mail -----
> > Von: "Bob Hanson" <hans...@stolaf.edu>
> > An: jmol-users@lists.sourceforge.net
> > CC: jmol-users@lists.sourceforge.net
> > Gesendet: Sonntag, 22. Januar 2012 17:35:26
> > Betreff: Re: [Jmol-users] bind command and picked atoms
> > Ok I see the problem. Select and picking are intimately associated.
> > You are trying to separate those.
> >
> > The zoomto patch is not the best solution because it only solves this
> > one problem of yours Alex. I'll check in tonight or tomorrow a way of
> > getting atom bond and point pick information into a user defined
> > binding. The following tokens in a user defined binding will all be
> > available:
> >
> >
> > _X _Y _TIME _MODE _ATOM _BOND _POINT _ACTION _DELTAX _DELTAY
> >
> >
> > ACTION is an integer that encodes the mouse/key combination and the
> > click count. MODE indicates the state including 1 dragged 2 clicked 3
> > wheeled 4 pressed 5 released. I noticed a few bugs with this and will
> > have them fixed today. Internet access is spuratic still.
> >
> ------------------------------------------------------------------------------
> > Try before you buy = See our experts in action!
> > The most comprehensive online learning library for Microsoft
> > developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3,
> > MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> > http://p.sf.net/sfu/learndevnow-dev2
> > _______________________________________________
> > Jmol-users mailing list
> > Jmol-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to