This is a read-only mirror of pymolwiki.org

Difference between revisions of "Alias"

From PyMOL Wiki
Jump to navigation Jump to search
m
m (12 revisions)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===DESCRIPTION===
+
 
"alias" allows you to bind a commonly used command to a single PyMOL keyword.
+
'''alias''' allows you to bind a commonly used command to a single PyMOL keyword.
  
 
===USAGE===
 
===USAGE===
Line 9: Line 9:
  
 
===EXAMPLES===
 
===EXAMPLES===
  alias go,load $TUT/1hpv.pdb; zoom 200/; show sticks, 200/ around 8
+
  alias go,load $TUT/1hpv.pdb; zoom 200/; show sticks, 200/ around 8 go
go
 
  
 
===NOTES===
 
===NOTES===
For security reasons, new PyMOL commands created using "extend" are not saved or restored in sessions.
+
For security reasons, new PyMOL commands created using "extend" are not saved or restored in sessions.
  
 
===SEE ALSO===
 
===SEE ALSO===
[[Cmd extend|extend]], [[Cmd api|api]]
+
[[Cmd extend|extend]], [[Cmd api|api]]
  
[[Category:Commands|alias]]
+
[[Category:Commands|Alias]]

Latest revision as of 01:48, 28 March 2014

alias allows you to bind a commonly used command to a single PyMOL keyword.

USAGE

alias name, command-sequence

PYMOL API

cmd.alias(string name,string command)

EXAMPLES

alias go,load $TUT/1hpv.pdb; zoom 200/; show sticks, 200/ around 8 go

NOTES

For security reasons, new PyMOL commands created using "extend" are not saved or restored in sessions.

SEE ALSO

extend, api