Re: [PyMOL] drawing arows, CONE cgo doesn't work. -- SOLVED

2014-08-26 Thread vincent Chaptal
Hi all, I managed to solve the problem by looking at the cgo_arrow.py of Thomas Holder in the wiki: http://www.pymolwiki.org/index.php/Cgo_arrow my line was incorrect: cmd.load_cgo( [ CONE, x0, y0, z0, x1, y1, z1, radius, r1, g1, b1, r1, g1, b1 ], cone_a ) correct line: cmd.load_cgo( [

[PyMOL] drawing arows, CONE cgo doesn't work.

2014-08-25 Thread vincent Chaptal
Hi, I'm trying to draw arrows in Pymol 1.7.2 for mac, à la http://www.pymolwiki.org/index.php/Axes When I run the script for the Axes_with_nice_cones, I have the error message: File /Applications/MacPyMOL.app/pymol/modules/pymol/parser.py, line 464, in parse

Re: [PyMOL] drawing arows, CONE cgo doesn't work.

2014-08-25 Thread Andreas Warnecke
Hej, if you simply copy-paste the wiki entry into PyMOL you will get the error. This code is intended to be run as a block (e.g. from script) and creates e.g. problems with indentation, or other errors. A simple solution would be to wrap the commands to a block using python and python end.