Hey Tsjerk,

 

Good to know, I missed that feature. Wonder what else is hidden…

 

Cheers,

 

Carsten

 

From: Tsjerk Wassenaar [mailto:tsjerkw@gmail.com]
Sent: Monday, July 15, 2013 11:42 AM
To: Schubert, Carsten [JRDUS]
Cc: pymol-users@lists.sourceforge.net; Timo Stein
Subject: Re: [PyMOL] Creating coloured and transparent polyhedra

 

Hey :)

Nice summary...
There is also the keyword ALPHA for setting the cgo transparency, allowing per element control. Just set

ALPHA, value,

before the element.

Cheers,

Tsjerk

On Jul 14, 2013 10:28 PM, "Schubert, Carsten [JRDUS]" <CSCHUBER@its.jnj.com> wrote:

Hi Timo,

That is best approached with CGO objects. You can find some examples in \PyMOL\PyMOL\modules\pymol\cgo.py

Here is a bit of a write-up I attempted a while ago. BTW transparency of CGO objects can be controlled via the "setting cgo_transparency"

HTH

Carsten

----------------------------------------------------------------------------------------------------
Lines
=====

The LINES command draws a lines between a set of coordinates defined by the
VERTEX command. The colour of the lines can be changed at any time even
between vertices, so that the start and end line color can be different. The
color of the line will be interpolated between the start and end color. The
thickness of the line is set by LINEWIDTH. However there is a bug in the
implementation. The GL renderer accepts the LINEWIDTH statement only before a
BEGIN statement. The internal renderer honors the change of the linewidth
before every VERTEX pair. Note: Tapered lines are not supported by either
implementation. LINEWIDTH and COLOR are optional commands.

LINEWIDTH, w,
BEGIN, LINES,
COLOR, r, g, b,
VERTEX, x1,y1,z1,
VERTEX, x2,y2,z2,
END

Line Strips
============

The LINE_STRIP command draws a continuous line between sets of coordinates
defined by the VERTEX command. The main difference to the LINES command is
that the endpoint of the first line is automatically the start of the next
line, but the first and last point are NOT connected, see LINE_LOOP instead.
The colour of the lines can be changed at any time even between vertices, so
that the start and end line color can be different. The color of the line
will be interpolated between the start and end color. The thickness of the
line is set by LINEWIDTH. However there is a bug in the implementation. The
GL renderer accepts the LINEWIDTH statement only before a BEGIN statement.
The internal renderer honors the change of the linewidth before every VERTEX
pair. Note: Tapered lines are not supported by either implementation.
LINEWIDTH and COLOR are optional commands.

LINEWIDTH, w,
BEGIN, LINE_STRIP,
COLOR, r, g, b,
VERTEX, x1,y1,z1,
VERTEX, x2,y2,z2, ...
VERTEX, xn,yn,zn
END

-----Original Message----- From: Timo Stein [mailto:mail@timo-stein.com] Sent: Friday, July 12, 20...