Get Type: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
===DESCRIPTION===  
===DESCRIPTION===  
  "get_type" returns a string describing the named object or
'''get_type''' returns a string describing the named object or selection or the string "nonexistent" if the name in unknown.
    selection or the string "nonexistent" if the name in unknown.
 
===PYMOL API===
===PYMOL API===
<source lang="python">
<source lang="python">
  cmd.get_type(string object-name)
cmd.get_type(string object-name)
</source>\
</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]]
[[Cmd get_names]]


[[Category:Commands|get_type]]
[[Category:Commands|get_type]]

Revision as of 10:31, 5 January 2006

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

  1. "object:molecule"
  2. "object:map"
  3. "object:mesh"
  4. "object:distance"
  5. "selection"

SEE ALSO

Cmd get_names