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. Principal Scientist . DeLano Scientific LLC . 400 Oyster Point Blvd., Suite 213 . South San Francisco, CA 94080 USA . Biz:(650)-872-0942 Tech:(650)-872-0834 . Fax:(650)-872-0273 Cell:(650)-346-1154 . mailto:war...@delsci.com > -----Original Message----- > From: pymol-users-ad...@lists.sourceforge.net > [mailto:pymol-users-ad...@lists.sourceforge.net] On Behalf Of > Tsjerk Wassenaar > Sent: Friday, July 15, 2005 10:24 PM > To: Gosu Ramachandriah > Cc: pymol-users@lists.sourceforge.net > Subject: Re: [PyMOL] changing stick color > > Hi Gosu, > > You can try: > > set stick_color, some_color > > It is also possible the reduce the sphere radius by using: > > set sphere_scale, 0.15 > > If you then hav two objects of your ligand, you can show one > with spheres and the other as sticks, and you'll have maximal > control of your scene with regards to colouring. > > Hope it helps, > > Tsjerk > > > On 7/12/05, Gosu Ramachandriah <padirg...@gmail.com> wrote: > > Hi, > > I am using pymol ver 0.98. I want to display ligand binding > site, with > > metal atom as sphere and other residues as sticks. To do this , I > > selected ball-and-stick from "preset" menu, subsequently > switched off > > spheres for residues. But stick color is not able to be > replaced. How > > can I change stick color? Or is it possible to reduce the sphere > > radius? > > > > Thanks > > Gosu > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick > > _______________________________________________ > > PyMOL-users mailing list > > PyMOL-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/pymol-users > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies from IBM. Find simple to follow Roadmaps, > straightforward articles, informative Webcasts and more! Get > everything you need to get up to speed, fast. > http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > _______________________________________________ > PyMOL-users mailing list > PyMOL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pymol-users > > >