From: Warren D. <wa...@de...> - 2005-07-16 13:38:07
|
Some further explanation on how presets work: The presets usually set a number of object-specific settings, such as stick_color. In the case of the ball & stick preset, stick_color is set to white for the selected objects, and the radius is set to 0.14. To change that, you'll need to change the setting for those objects: # load some object fragment arg, my_object # call the present function preset.ball_and_stick("my_object") # to query get stick_color, my_object get stick_radius, my_object # to set set stick_color, grey, my_object set stick_radius, 0.2, my_object # to restore the object to using the global defaults unset stick_color, my_object unset stick_radius, my_object Cheers, Warren -- Warren L. DeLano, Ph.D. =20 Principal Scientist . DeLano Scientific LLC =20 . 400 Oyster Point Blvd., Suite 213 =20 . South San Francisco, CA 94080 USA =20 . Biz:(650)-872-0942 Tech:(650)-872-0834 =20 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:wa...@de... =20 =20 > -----Original Message----- > From: pym...@li...=20 > [mailto:pym...@li...] On Behalf Of=20 > Tsjerk Wassenaar > Sent: Friday, July 15, 2005 10:24 PM > To: Gosu Ramachandriah > Cc: pym...@li... > Subject: Re: [PyMOL] changing stick color >=20 > Hi Gosu, >=20 > You can try: >=20 > set stick_color, some_color >=20 > It is also possible the reduce the sphere radius by using: >=20 > set sphere_scale, 0.15 >=20 > If you then hav two objects of your ligand, you can show one=20 > with spheres and the other as sticks, and you'll have maximal=20 > control of your scene with regards to colouring. >=20 > Hope it helps, >=20 > Tsjerk >=20 >=20 > On 7/12/05, Gosu Ramachandriah <pad...@gm...> wrote: > > Hi, > > I am using pymol ver 0.98. I want to display ligand binding=20 > site, with=20 > > metal atom as sphere and other residues as sticks. To do this , I=20 > > selected ball-and-stick from "preset" menu, subsequently=20 > switched off=20 > > spheres for residues. But stick color is not able to be=20 > replaced. How=20 > > can I change stick color? Or is it possible to reduce the sphere=20 > > radius? > >=20 > > Thanks > > Gosu > >=20 > >=20 > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration=20 > Strategies=20 > > from IBM. Find simple to follow Roadmaps, straightforward articles,=20 > > informative Webcasts and more! Get everything you need to get up to=20 > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&opclick > > _______________________________________________ > > PyMOL-users mailing list > > PyM...@li... > > https://lists.sourceforge.net/lists/listinfo/pymol-users > > >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration=20 > Strategies from IBM. Find simple to follow Roadmaps,=20 > straightforward articles, informative Webcasts and more! Get=20 > everything you need to get up to speed, fast.=20 > http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dick > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 >=20 >=20 |