Enable: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
(Added more examples and description of `parents` argument.)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
  enable [name [, parents]]
  enable [name [, parents]]


When run with no arguments, all loaded objects are enabled.
; name
: the name of an object or a named selection (default="all")


Running it with parents=1 will enable the named object and all parent objects of the named object (recursively), so that it won't be hidden by having a parent object (or [[group]]) that is [[disable|disabled]].
; parents
: when set to 1, enables the named object and all parent objects of the named object (recursively), so it won't be hidden by having a parent object (or [[group]]) that is [[disable|disabled]] (default=0)


===PYMOL API===
===PYMOL API===
Line 20: Line 22:


===SEE ALSO===
===SEE ALSO===
[[Show]], [[Hide]], [[Disable]]
[[Show]], [[Hide]], [[Disable]], [[Suspend_updates]]


[[Category:Commands|Enable]]
[[Category:Commands|Enable]]
[[Category:View Module|Enable]]
[[Category:View Module|Enable]]

Latest revision as of 16:11, 20 May 2014

The enable command toggles on the display of all currently visible representations of an object. It is the equivalent of selecting the object in the list at the top of the Internal GUI.

USAGE

enable [name [, parents]]
name
the name of an object or a named selection (default="all")
parents
when set to 1, enables the named object and all parent objects of the named object (recursively), so it won't be hidden by having a parent object (or group) that is disabled (default=0)

PYMOL API

cmd.enable( string name='all', int parents=0 )

EXAMPLES

enable my_object
enable (my_object1 or my_object2)
enable my_object*
enable
enable my_object, parents=1

SEE ALSO

Show, Hide, Disable, Suspend_updates