This is a read-only mirror of pymolwiki.org

Difference between revisions of "Get legal name"

From PyMOL Wiki
Jump to navigation Jump to search
(Created page with "'''get_legal_name''' is an API only function that clears any non-valid characters from a potential object name. ''New in PyMOL version 1.2'' == PyMOL API == <source lang="pyth...")
 
m (2 revisions)
 
(One intermediate revision by one other user not shown)
Line 17: Line 17:
 
</source>
 
</source>
  
== See also ==
 
  
* [[get_unused_name]]
+
===SEE ALSO===
 +
[[get_names]], [[get_legal_name]], [[get_unused_name]], [[set_names]]

Latest revision as of 02:00, 28 March 2014

get_legal_name is an API only function that clears any non-valid characters from a potential object name.

New in PyMOL version 1.2

PyMOL API

cmd.get_legal_name(string name)

Example

This will print "foo_bar":

print cmd.get_legal_name('foo!"$%&/()=?bar')


SEE ALSO

get_names, get_legal_name, get_unused_name, set_names