From: DeLano S. <de...@de...> - 2008-02-06 22:33:31
|
Robin, Try: obj.extend([ALPHA,0.5]) Cheers, Warren -- DeLano Scientific LLC Subscriber Support Services mailto:de...@de... > -----Original Message----- > From: pym...@li... > [mailto:pym...@li...] On Behalf > Of Robin Owen > Sent: Wednesday, February 06, 2008 8:18 AM > To: pym...@li... > Subject: [PyMOL] transparency of cgo plane > > Hi all, > > I've been writing a small pymol script based on > plane_wizard.py from the pymol wiki > http://www.pymolwiki.org/index.php/Plane_Wizard > (and also Warren's script cgo_plane.py ) However, I'm getting > stuck with the modification I'd most like to make. > I'd like the plane to be partially transparent. This seems to > be possible ( http://delsci.com/img/pore.jpg ) but I think I > must be overlooking something obvious in cgo syntax... > I found an old message in the archive saying this can only be > done at the time the object is created using something like > > def makeSphere(name, x, y, z, r, transparency=0.5): > obj[] > obj.extend([cgo,1-transparency]) > cmd.load_cgo(obj,name,1) > > but have had no success in adapting/integrating this. > > Thanks in advance for any ideas, > Robin > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by: Microsoft Defy all > challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users |