Re: [PyMOL] CGO object code structure

2022-02-15 Thread Jared Sampson
Quick follow-up: I just learned from Jarrett Johnson that it is possible to add alpha to CGO objects on a per-shape basis. Just prepend `[cgo.ALPHA, 0.5]` (substituting your desired alpha value, of course) before the CONE (or other) shape. This alpha value will be used for all subsequent shapes u

Re: [PyMOL] CGO object code structure

2022-02-14 Thread Jared Sampson
Hi Marcelo - No I don't believe so. In PyMOL, a CGO `CONE` is a fixed-length list of floats. You can see in the cgo.py source that `cgo.CONE` itself is actually a float, too (specifically, 27.0). My understa

Re: [PyMOL] CGO object code structure

2022-02-13 Thread Marcelo Depólo Polêto
Thank you Jared, Yes, I have been using *set cgo_transparency*, but is there a way of embedding alpha in the CONE object definition? Since I have been using color1='blue' and color2='red', can I just append an alpha float to the color lists? Best regards, -- Marcelo Em dom., 13 de fev. de 2022 à

Re: [PyMOL] CGO object code structure

2022-02-13 Thread Jared Sampson
I forgot to add that the transparency can be handled by e.g. set cgo_transparency, 0.5, my_cgo_object Cheers, Jared On Sun, Feb 13, 2022 at 9:38 PM Jared Sampson wrote: > Hi Marcelo - > > Looks like you have the right format for `CONE`. This should really be in > the Wiki...and apparently

Re: [PyMOL] CGO object code structure

2022-02-13 Thread Jared Sampson
Hi Marcelo - Looks like you have the right format for `CONE`. This should really be in the Wiki...and apparently is not. I've just made a couple of pages, others can of course feel free to elaborate: https://pymolwiki.org/index.php/CGO_Shapes https://pymolwiki.org/index.php/Load_CGO You may al