This is a read-only mirror of pymolwiki.org
Difference between revisions of "Get Type"
Jump to navigation
Jump to search
m |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
===DESCRIPTION=== | ===DESCRIPTION=== | ||
− | + | '''get_type''' returns a string describing the named object or selection or the string "nonexistent" if the name in unknown. | |
− | + | ||
− | |||
===PYMOL API=== | ===PYMOL API=== | ||
− | + | <source lang="python"> | |
− | + | cmd.get_type(string object-name) | |
− | + | </source> | |
− | + | ||
===NOTES=== | ===NOTES=== | ||
Possible return values are | Possible return values are | ||
− | + | # "object:molecule" | |
− | "object:molecule" | + | # "object:map" |
− | "object:map" | + | # "object:mesh" |
− | "object:mesh" | + | # "object:distance" |
− | "object:distance" | + | # "selection" |
− | "selection" | + | |
− | |||
===SEE ALSO=== | ===SEE ALSO=== | ||
− | + | [[Cmd get_names]] | |
− | [[Category:Commands| | + | [[Category:Commands|Get Type]] |
Revision as of 14:03, 20 June 2009
DESCRIPTION
get_type returns a string describing the named object or selection or the string "nonexistent" if the name in unknown.
PYMOL API
cmd.get_type(string object-name)
NOTES
Possible return values are
- "object:molecule"
- "object:map"
- "object:mesh"
- "object:distance"
- "selection"