<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Thanks,
<div>I guess the links will suffice for what I am looking for.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Thomas<br>
<div><br>
</div>
<div><br>
<div>
<div>On Apr 9, 2013, at 11:13 AM, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Thomas,
<div><span class="Apple-tab-span" style="white-space:pre"></span>As a short addendum to Elaine's answer, if the things you want to do can't be performed as a series of currently-available commands then you would need to resort to implementing a command yourself
in Python. This is described in the "Adding Command-Line Commands" example in the programmer's guide:</div>
<div><br>
</div>
<div><a href="http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/index.html">http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/Examples/index.html</a></div>
<div><br>
</div>
<div>--Eric</div>
<br>
<br>
<div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; ">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> Eric Pettersen</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> UCSF Computer Graphics Lab</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">
<font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> <a href="http://www.cgl.ucsf.edu/">http://www.cgl.ucsf.edu</a></font></div>
<br class="Apple-interchange-newline">
</span></div>
<div><br>
<div>
<div>On Apr 9, 2013, at 8:50 AM, Elaine Meng wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hi Thomas,<br>
Yes and yes. There are at least a couple ways...<br>
<br>
(a) the "alias" command: you can alias some short string to a longer string, which could be an atom specification, or an entire command with or without arguments, or even multiple commands joined together with semicolons. Aliases are saved in the preferences
file, and all can be used in the command line. In addition, start-of-line aliases indicated with "hat" symbol ^ and that do not require arguments (see documentation) are put into a top-level Aliases menu.<br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/alias.html">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/alias.html</a>><br>
<br>
(b) custom presets (Chimera 1.7 and newer): you can create Chimera command files and/or Python files to be treated as macros, and then specify their location to Chimera (menu Presets... Add Custom Presets). Although we are calling them presets, in principle
you could put any commands in there. This mechanism doesn't allow for argument substitution but it would be reasonable to include generic atom specifications (e.g. "protein" "sel" etc.). Your custom presets can be accessed from the Presets menu and with the
"preset" command.<br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/preferences.html#Presets">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/preferences.html#Presets</a>><br>
<<a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/preset.html">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/preset.html</a>><br>
<br>
I hope this helps,<br>
Elaine<br>
----------<br>
Elaine C. Meng, Ph.D. <br>
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
On Apr 8, 2013, at 6:14 PM, Thomas Hrabe wrote:<br>
<br>
<blockquote type="cite">Hi everyone,<br>
</blockquote>
<blockquote type="cite">I wanted to know if custom "chimera command line" commands / macros can be created by a user?<br>
</blockquote>
<blockquote type="cite">Is there any documentation available on that?<br>
</blockquote>
<blockquote type="cite">Thanks,<br>
</blockquote>
<blockquote type="cite">Thomas<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<br>
_______________________________________________<br>
Chimera-users mailing list<br>
<a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>
<a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br>
</blockquote>
</div>
<br>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>