This is a read-only mirror of pymolwiki.org

Difference between revisions of "Unset"

From PyMOL Wiki
Jump to navigation Jump to search
m (5 revisions)
 
m (1 revision)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
'''unset''' behaves in two ways.
 
'''unset''' behaves in two ways.
 
   
 
   
If selection is not provided, unset changes the named global setting to a zero or off value.
+
If selection is not provided:
 +
 
 +
* Since PyMOL 2.5: Changes the named global setting to the default value.
 +
* Before PyMOL 2.5: Changes the named global setting to a zero or off value.
 
   
 
   
 
If a selection is provided, then "unset" undefines object-specific or state-specific settings so that the global setting will be in effect.
 
If a selection is provided, then "unset" undefines object-specific or state-specific settings so that the global setting will be in effect.
  
===USAGE===
+
== Usage ==
 +
 
 
  unset name [,selection [,state ]]
 
  unset name [,selection [,state ]]
  
===PYMOL API===
+
== Python API ==
 +
 
 
<source lang="python">
 
<source lang="python">
 
cmd.unset ( string name, string selection = '',
 
cmd.unset ( string name, string selection = '',
 
         int state=0, int updates=1, int log=0 )  
 
         int state=0, int updates=1, int log=0 )  
 
</source>
 
</source>
 +
 +
== See Also ==
 +
 +
* [[unset_deep]]
 +
* [[set]]
  
 
[[Category:Commands|Unset]]
 
[[Category:Commands|Unset]]
 
[[Category:States]]
 
[[Category:States]]

Latest revision as of 03:05, 1 March 2021

unset behaves in two ways.

If selection is not provided:

  • Since PyMOL 2.5: Changes the named global setting to the default value.
  • Before PyMOL 2.5: Changes the named global setting to a zero or off value.

If a selection is provided, then "unset" undefines object-specific or state-specific settings so that the global setting will be in effect.

Usage

unset name [,selection [,state ]]

Python API

cmd.unset ( string name, string selection = '',
         int state=0, int updates=1, int log=0 )

See Also