Get: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
(Created page with '===DESCRIPTION=== '''get''' returns the value of a setting. This command is very useful for determining the any setting(s) when writing a script. For example, with this command...')
 
No edit summary
Line 2: Line 2:
'''get''' returns the value of a setting.
'''get''' returns the value of a setting.


This command is very useful for determining the any setting(s) when writing a script.  For example, with this command you can find out if the background is opaque, where the light source is, etc.
This command is very useful for determining the any setting(s) when writing a script.  For example, with this command you can find out if the  
background is opaque, where the light source is, etc.


===USAGE===  
===USAGE===  

Revision as of 11:14, 20 May 2009

DESCRIPTION

get returns the value of a setting.

This command is very useful for determining the any setting(s) when writing a script. For example, with this command you can find out if the background is opaque, where the light source is, etc.

USAGE

get name [, selection [, state ]]

Example

get opaque_background

PYMOL API

print cmd.get(string name, string object, int state, int quiet)

Notes

  • The API command will not print out and should be stored or used for comparison
  • "get" currently only works with global, per-object, and per-state settings. There is currently no way to retrieve per-atom settings.