This is a read-only mirror of pymolwiki.org
Get legal name
Revision as of 19:18, 6 October 2013 by OsvaldoMartin (talk | contribs)
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')