Talk:Line width

From PyMOLWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)