This is a read-only mirror of pymolwiki.org
Difference between revisions of "Talk:Line width"
(Created page with 'I was wondering if it's possible to change the line_width for a selection. Say I want to have two line representations, one with most of a molecule at line_width,2 and a selecti...') |
m (6 revisions) |
||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
I was wondering if it's possible to change the line_width for a selection. Say I want to have two line representations, one with most of a molecule at line_width,2 and a selection at 4, say. Doing the same with a sticks representation would be fine too if that's easier. | I was wondering if it's possible to change the line_width for a selection. Say I want to have two line representations, one with most of a molecule at line_width,2 and a selection at 4, say. Doing the same with a sticks representation would be fine too if that's easier. | ||
+ | |||
+ | As of this writing, I can set different line_width values to different objects/selection, but it doesn't seem to make a difference. | ||
+ | |||
+ | Will update soon. | ||
+ | |||
+ | [[User:Inchoate|Tree]] 18:56, 6 July 2009 (UTC) | ||
+ | |||
+ | '''Update''' | ||
+ | |||
+ | You can do this in PyMOL. Do | ||
+ | <source lang="python"> | ||
+ | set_bond line_width, 5, i. 1-10 | ||
+ | </source> | ||
+ | |||
+ | The line that connects two atoms in PyMOL is bond, so use set bond. | ||
+ | |||
+ | |||
+ | === question === | ||
+ | what version of PyMol allows the functionality of set_bond? I have 0.99rc6 and when I run your examples using set_bond and variants of them I receive either "SyntaxError: invalid syntax" or "NameError: name 'set_bond' is not defined." | ||
+ | |||
+ | -- | ||
+ | You probably need something newer, like one of the 1.0+ versions. I think there are precompiled 1.0+ versions of PyMOL now available. | ||
+ | [[User:Inchoate|Tree]] 19:19, 6 August 2009 (UTC) |
Latest revision as of 00:44, 28 March 2014
I was wondering if it's possible to change the line_width for a selection. Say I want to have two line representations, one with most of a molecule at line_width,2 and a selection at 4, say. Doing the same with a sticks representation would be fine too if that's easier.
As of this writing, I can set different line_width values to different objects/selection, but it doesn't seem to make a difference.
Will update soon.
Tree 18:56, 6 July 2009 (UTC)
Update
You can do this in PyMOL. Do
set_bond line_width, 5, i. 1-10
The line that connects two atoms in PyMOL is bond, so use set bond.
question
what version of PyMol allows the functionality of set_bond? I have 0.99rc6 and when I run your examples using set_bond and variants of them I receive either "SyntaxError: invalid syntax" or "NameError: name 'set_bond' is not defined."
-- You probably need something newer, like one of the 1.0+ versions. I think there are precompiled 1.0+ versions of PyMOL now available. Tree 19:19, 6 August 2009 (UTC)