Difference between revisions of "Set bond"

From PyMOLWiki
Jump to: navigation, search
(Created page with '= Overview = Set_bond sets properties on bonds. This is usually some atom-connecting property like Line_width or line_color. = Syntax = <source lang="python"> # set...')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Overview =
+
 
[[Set_bond]] sets properties on bonds.  This is usually some atom-connecting property like [[Line_width]] or [[line_color]].
+
[[Set_bond]] sets properties on ''bonds''.  This is usually some atom-connecting property like [[Line_width]], [[line_color]], [[Stick_radius]].
 +
 
 +
[[Image:lw2.png|thumb|center|450px|Line_width was set to 10 for residues 1-10]]
  
 
= Syntax =
 
= Syntax =
Line 6: Line 8:
 
# set settingName to value for object or selection objSel
 
# set settingName to value for object or selection objSel
 
set_bond settingName, value, objSel
 
set_bond settingName, value, objSel
 +
</source>
  
 +
= Examples =
 +
<source lang="python">
 
# Example
 
# Example
 
load $TUT/1hpv.pdb
 
load $TUT/1hpv.pdb
Line 18: Line 23:
 
* [[Set]]
 
* [[Set]]
 
* [[Line_width]]
 
* [[Line_width]]
 +
*[[Stick_radius]]
  
 
[[Category:Settings]]
 
[[Category:Settings]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Latest revision as of 14:46, 17 November 2009

Set_bond sets properties on bonds. This is usually some atom-connecting property like Line_width, line_color, Stick_radius.

Line_width was set to 10 for residues 1-10

Syntax

# set settingName to value for object or selection objSel
set_bond settingName, value, objSel

Examples

# Example
load $TUT/1hpv.pdb
remove het
as lines
color blue
set_bond line_with, 5, i. 1-10

See Also