https://pymolwiki.org/index.php?title=ObjectByArrows&feed=atom&action=history
ObjectByArrows - Revision history
2024-03-28T17:29:16Z
Revision history for this page on the wiki
MediaWiki 1.35.7
https://pymolwiki.org/index.php?title=ObjectByArrows&diff=6332&oldid=prev
Inchoate at 12:24, 30 April 2009
2009-04-30T12:24:42Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:24, 30 April 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l38" >Line 38:</td>
<td colspan="2" class="diff-lineno">Line 38:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Script_Library]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Script_Library]]</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:UI_Scripts]]</ins></div></td></tr>
</table>
Inchoate
https://pymolwiki.org/index.php?title=ObjectByArrows&diff=6290&oldid=prev
Inchoate at 17:04, 27 April 2009
2009-04-27T17:04:15Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 17:04, 27 April 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l35" >Line 35:</td>
<td colspan="2" class="diff-lineno">Line 35:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>cmd.set_key('right', move_down)</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>cmd.set_key('right', move_down)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Script_Library]]</ins></div></td></tr>
</table>
Inchoate
https://pymolwiki.org/index.php?title=ObjectByArrows&diff=6289&oldid=prev
Jcorn: Created page with '==Overview== When sifting through many similar structures for days on end, mousing around the object pane can become strenuous. This script binds the left and right arrows on you...'
2009-04-27T16:24:35Z
<p>Created page with '==Overview== When sifting through many similar structures for days on end, mousing around the object pane can become strenuous. This script binds the left and right arrows on you...'</p>
<p><b>New page</b></p><div>==Overview==<br />
When sifting through many similar structures for days on end, mousing around the object pane can become strenuous. This script binds the left and right arrows on your keyboard to moving up and down the object list. Note that this script supports objects, but is untested for groups.<br />
<br />
<source lang="python"><br />
from pymol import cmd<br />
<br />
def move_down():<br />
enabled_objs = cmd.get_names("object",enabled_only=1)<br />
all_objs = cmd.get_names("object",enabled_only=0)<br />
for obj in enabled_objs:<br />
cmd.disable(obj)<br />
last_obj=obj<br />
for i in range(0,len(all_objs)):<br />
if all_objs[i] == obj:<br />
if i+1 >= len(all_objs):<br />
cmd.enable( all_objs[0] )<br />
else:<br />
cmd.enable( all_objs[i+1] )<br />
cmd.orient<br />
def move_up():<br />
enabled_objs = cmd.get_names("object",enabled_only=1)<br />
all_objs = cmd.get_names("object",enabled_only=0)<br />
for obj in enabled_objs:<br />
cmd.disable(obj)<br />
last_obj=obj<br />
for i in range(0,len(all_objs)):<br />
if all_objs[i] == obj:<br />
if i-1 < 0:<br />
cmd.enable( all_objs[-1] )<br />
else:<br />
cmd.enable( all_objs[i-1] )<br />
cmd.orient<br />
<br />
cmd.set_key('left', move_up)<br />
cmd.set_key('right', move_down)<br />
</source></div>
Jcorn