Difference between revisions of "Cartoon transparency"

From PyMOLWiki
Jump to navigation Jump to search
 
 
(5 intermediate revisions by 4 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  # 50% transparent
+
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>
  
 
== See Also ==  
 
== See Also ==  
 
[[cartoon]]
 
[[cartoon]]
 +
 +
[[Category:Settings|Cartoon transparency]]

Latest revision as of 16: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)

Examples

See Also

cartoon