<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 22, 2014, at 1:08 AM, Michał Kadlof wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello,<div><br></div><div>I'm currently work on proteins with disulfide bonds. I'm very often do the same sequence of tasks in Chimera:</div><div><br></div><div>1. open structure</div><div>2. Select -> chemistry -> functional group -> disulfide</div><div>3. extend selection to have selected all atoms of Cys-Cys bridge</div><div>4. Show selected atoms</div><div><br></div><div>Is there any way to wrap it into one-click button on toolbar?</div></div></blockquote><br></div><div><br></div>Hi Michał,<div><span class="Apple-tab-span" style="white-space:pre"> </span>While it is literally possible to put what you want on the toolbar, it's a bit easier to make a menu item instead. To do that, you create a command alias for the actions, and put that in a file that Chimera reads at startup so that it is always available. Details:</div><div><br></div><div>The alias would be</div><div><span class="Apple-tab-span" style="white-space:pre"> </span><b>alias ^showbridge sel disulfide; sel up; disp sel</b></div><div><b><br></b></div><div>This creates an alias named "showbridge" which is only expanded if typed at the beginning of a line -- that's what the <b>^</b> indicates. Such beginning-of-line aliases are also placed in an Aliases menu that appears after the Favorites menu (if you have any such aliases).</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>To get the alias read by Chimera at startup you would put it in any of the files listed in the "Files to read at startup" section of the Command Line preferences (Favorites->Preferences). This is also described in more detail here: <a href="file:///Applications/Chimera-1.9-X11.app/Contents/Resources/share/chimera/helpdir/UsersGuide/preferences.html#Command%20Line">Command Line</a>.</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Finally, if you <i>really</i> want it on the toolbar instead, that will involve making your own (simple) plug-in in Python. I can provide more detail about that if you like.</div><div><br></div><div>--Eric</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Eric Pettersen</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>UCSF Computer Graphics Lab</div><div><br></div></body></html>