Still does not work with a trackpad.
***********************************************
Jeff Hansen
Department of Chemistry and Biochemistry
DePauw University
602 S. College Ave.
Greencastle, IN 46135
[email protected]
***********************************************
On Apr 15, 2010, at 8:19 AM, Otis Rothenberger wrote:
> Jeff and Jonathan-
>
> Here's a Mac fix, I hope!
>
> First, I forgot. There is a WHEEL direction feedback. That allows this to be
> a bit more compact:
>
> Mac (without wheel): After defining the two atoms with the set rotation link,
> CTRL-RIGHT will rotate the moving group. Remember, the first clicked atom is
> the anchor.
>
> For a WHEEL mouse: The above will work, or you can use CTRL-WHEEL
>
> Because I can get direction feedback in both cases, both directions of
> rotation are possible with each mouse action - (WHEEL forward/backward or
> MOUSE +Y/-Y)
>
> I'm stepping on a the Jmol CTR-RIGHT for pop menu, but CTRL-LEFT also brings
> up the menu.
>
> The code for this is pretty simple. Recently, Bob posted a note on Jmol
> global variables, and understanding global variables makes this task pretty
> easy. In the load script, two global variables are defined, rot1 and rot2.
> That allows the following global binding:
>
> unbind 'CTRL-LEFT'; bind 'CTRL-LEFT' 'select WITHIN(BRANCH,{atomIndex =
> rot1}, {atomIndex = rot2});rotateSelected {atomIndex = rot1} {atomIndex =
> rot2} @{_DELTAY*1};'
>
> The select rotation link simply needs to puts atomIndex numbers into rot1 and
> rot2 prior to the rotation. There may be slicker ways to fill rot1 and rot
> prior to rotation. I'm open to suggestions.
>
> I still have not put this on chemagic. It's at:
> http://www.che.ilstu.edu/osrothen/web_molecules/script_page_large.aspx
>
> Best, Otis
>
> On 4/15/2010 2:13 AM, Jeff Hansen wrote:
>>
>> Otis,
>>
>> Unfortunately, this does not work if you don't have a wheel. On my MacBook
>> Pro I use two-finger scrolling as an equivalent to a scroll wheel. In other
>> words, moving two fingers up or down on the touch pad scrolls up or down
>> (works left or write too). Is it possible to bind to control and two-finger
>> scrolling? Even outside of using a MacBook Pro, I'm sure not everyone uses
>> a scroll wheel.
>>
>>
>> Jeff
>>
>>
>> ***********************************************
>> Jeff Hansen
>> Department of Chemistry and Biochemistry
>> DePauw University
>> 602 S. College Ave.
>> Greencastle, IN 46135
>> [email protected]
>> ***********************************************
>>
>>
>> On Apr 15, 2010, at 1:01 AM, Otis Rothenberger wrote:
>>
>>> Jeff and Jonathan-
>>>
>>> A single click on a bond would be nice, but I think only atoms (and
>>> possibly draw objects???) can pass to a clickcallback.
>>>
>>> This is very tentative, so I put it on the department server rather than
>>> the chemagic server:
>>>
>>> http://www.che.ilstu.edu/osrothen/web_molecules/script_page_large.aspx
>>>
>>> Click Display Molecular Editor. At the Bond Rotation group, clicking the
>>> set rotation link will prompt you to click two atoms to define a bond. The
>>> first click is the anchor atom, and the second click defines the group that
>>> moves.
>>>
>>> The rotate link still works, but that's going to go. The rotation about the
>>> defined bond is now tied to mouse actions:
>>>
>>> CTRL-WHEEL rotates on way
>>> CTRL-ALT-WHEEL rotates the other way
>>>
>>> It would be nice to use CTR-WHEEL only with forward and backward wheel
>>> going in different directions, but I can't find a feedback for wheel
>>> direction - just feedback for wheel action.
>>>
>>> I don't know if Macs have an ALT? There are other bindings that can be
>>> used, but the wheel binding is appropriate for this kind of action.
>>>
>>> Jonathan, It may be that users would like this type of feature built in,
>>> and the users group may want to encourage developers to go in that
>>> direction. As a user, I just had this on my to do list, so your note gave
>>> me the push that I needed to get it done. I think you were on the mark in
>>> your original note. The ability to rotate about bonds with a fair degree of
>>> ease is important.
>>>
>>> Best Regards, Otis
>>>
>>>
>>> On 4/14/2010 2:21 PM, Jeff Hansen wrote:
>>>>
>>>> How about hovering over the bond instead of atoms, or at least a single
>>>> click on the bond instead of having to click two atoms.
>>>>
>>>>
>>>> ***********************************************
>>>> Jeff Hansen
>>>> Department of Chemistry and Biochemistry
>>>> DePauw University
>>>> 602 S. College Ave.
>>>> Greencastle, IN 46135
>>>> [email protected]
>>>> ***********************************************
>>>>
>>>>
>>>
>>> --
>>> Otis Rothenberger
>>> chemagic.com
>>> ------------------------------------------------------------------------------
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev_______________________________________________
>>> Jmol-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>>
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
> --
> Otis Rothenberger
> chemagic.com
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users