Cartoon transparency: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
This setting changes the transparency of the cartoon representation. | This setting changes the transparency of the cartoon representation. | ||
As of PyMOL version [https://pymol.org/dokuwiki/?id=media:new23 2.3], cartoon transparency is now an atom-level setting. This allows for a cartoon selection to be transparent without creating an additional object. | |||
== Syntax == | == Syntax == | ||
<source lang="python"> | <source lang="python"> | ||
set cartoon_transparency, 0.5, | set cartoon_transparency, 0.5, <object> # 50% transparent, the object name is optional | ||
set cartoon_transparency, 0.5, <sele> # 50% transparent, sele: the selection name | |||
</source> | </source> | ||
Valid values range from 0.0 - 1.0 | Valid values range from 0.0 (fully opaque) - 1.0 (fully transparent) | ||
== Examples == | == Examples == | ||
<gallery> | <gallery> | ||
Image:Ctt.png|Cartoon Transparency | Image:Ctt.png|Cartoon Transparency | ||
Image:1rmm-atom-cartoon-transparency.png|Cartoon Atom-level Transparency | |||
</gallery> | </gallery> | ||
Latest revision as of 15:02, 14 December 2018
Overview
This setting changes the transparency of the cartoon representation.
As of PyMOL version 2.3, cartoon transparency is now an atom-level setting. This allows for a cartoon selection to be transparent without creating an additional object.
Syntax
set cartoon_transparency, 0.5, <object> # 50% transparent, the object name is optional
set cartoon_transparency, 0.5, <sele> # 50% transparent, sele: the selection name
Valid values range from 0.0 (fully opaque) - 1.0 (fully transparent)