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 às 21:42, Jared Sampson <
jared.samp...@columbia.edu> escreveu:

> 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 <jared.samp...@columbia.edu>
> wrote:
>
>> 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 also find it useful to look at the Open Source PyMOL source code,
>> perhaps starting with:
>>
>> https://github.com/schrodinger/pymol-open-source/blob/master/modules/pymol/cgo.py
>>
>> Hope that helps.
>>
>> Cheers,
>> Jared
>>
>>
>> On Sat, Feb 12, 2022 at 10:51 PM Marcelo Depólo Polêto <
>> marcelodep...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I am building a CGO object of a cone and I want to embed a transparency
>>> value to it. So far I managed to create the cone with the line below:
>>>
>>> *obj = [cgo.CONE] + begin + end + [radius_begin, radius_end] + color1 +
>>> color2 + [1.0, 1.0]*
>>>
>>> Could someone provide more information on how the CGO objects are
>>> structured (which values are expected and their formats)?
>>>
>>> Best regards,
>>> --
>>> *Marcelo Depólo Polêto, Ph.D.*
>>> Postdoctoral Associate
>>> Office: 106B Engel Hall
>>> Department of Biochemistry
>>> Virginia Tech
>>> 340 West Campus Dr.
>>> Blacksburg, VA 24061
>>> gender pronouns <https://ccc.vt.edu/resources/Gender_Pronouns.html>:
>>> he/him/his
>>> _______________________________________________
>>> PyMOL-users mailing list
>>> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>>> Unsubscribe:
>>> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe
>>
>>

-- 
--
*Marcelo Depólo Polêto, Ph.D.*
Postdoctoral Associate
Office: 106B Engel Hall
Department of Biochemistry
Virginia Tech
340 West Campus Dr.
Blacksburg, VA 24061
gender pronouns <https://ccc.vt.edu/resources/Gender_Pronouns.html>:
he/him/his
_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to