Quoting tanri...@stud.uni-frankfurt.de:
# Hi everybody,
#
# i've just created many CGOs, which show up solid surfaces like spheres
and
# ellipsoids. Is it possible to set the transparency of some CGO's to
i.e. 0.5
# and leave the others solid?
# I've checked out the reference and the manual, and found something like:
#
# set transparency=0.5, object
#
# But this actually does not work for CGO's.
# Any ideas....
#
# Yusuf
The last time I looked at this, it seemed like the easiest (only?) way to
do this was to tweak the transparency at creation time. So, I typically
have functions that look like this:
def makeSphere(name,x,y,z,r,transparency=0,...):
...
obj = []
...
obj.extend([cgo.ALPHA,1-transparency])
obj.extend([cgo.SPHERE,x,y,z,r])
...
cmd.load_cgo(obj,name,1)
I don't know how to change it later, though.
Hope that helps,
-michael
#
#
# --
# Yusuf Tanrikulu
# Bioinformatics Diploma Student
# Department of Biosciences
# Johann-Wolfgang-Goethe Univerity Frankfurt
# Siesmayerstrasse 70
# 60326 Frankfurt am Main
# - Germany -
# tanrik...@bioinformatik.uni-frankfurt.de
#
#