Difference between revisions of "Order"

From PyMOLWiki
Jump to navigation Jump to search
m
 
(2 intermediate revisions by one other user not shown)
Line 6: Line 6:
  
 
====EXAMPLES====
 
====EXAMPLES====
order 1dn2 1fgh 1rnd  # sets the order of these three objects
+
<source lang="python">
order *,yes          # sorts all names
+
# sets the order of these three objects
order 1dn2_*, yes     # sorts all names beginning with 1dn2_
+
order 1dn2 1fgh 1rnd
order 1frg, location=top  # puts 1frg at the top of the list
+
 
 +
# sorts all names
 +
order *,yes
 +
 
 +
# sorts all names beginning with 1dn2_
 +
order 1dn2_*, yes
 +
 
 +
# puts 1frg at the top of the list
 +
order 1frg, location=top
 +
</source>
  
 
===PYMOL API===
 
===PYMOL API===
Line 22: Line 31:
  
 
===SEE ALSO===
 
===SEE ALSO===
[[Cmd set_name]]
+
[[Set_Name]]
  
[[Category:Commands|order]]
+
[[Category:Commands|Order]]

Latest revision as of 10:17, 20 June 2009

DESCRIPTION

order allows you to change ordering of names in the control panel

USAGE

order names-list, sort, location

EXAMPLES

# sets the order of these three objects
order 1dn2 1fgh 1rnd

# sorts all names
order *,yes

# sorts all names beginning with 1dn2_
order 1dn2_*, yes

# puts 1frg at the top of the list
order 1frg, location=top

PYMOL API

cmd.order(string names-list, string sort, string location)

NOTES

  1. names-list: a space separated list of names
  2. sort: yes or no
  3. location: top, current, or bottom

SEE ALSO

Set_Name